Exception::__clone

(PHP 5, PHP 7, PHP 8)

Exception::__cloneClone the exception

Description

privateException::__clone(): void

Exceptions cannot be cloned, and attempting to do so will throw an Error.

Parameters

This function has no parameters.

Return Values

No value is returned.

Errors/Exceptions

Exceptions are not clonable.

Changelog

VersionDescription
8.1.0Exception::__clone() is no longer final.
To Top