clone
Error::__clone
Clone the error
ENTITY
private
void
Error::__clone
Errors do not support cloning; this method exists only to prevent it.
[!WARNING] Errors cannot be cloned, whether they are instances of Error or of a subclass. Attempting to clone an error throws an Error, which may be caught.
ENTITY ENTITY
ENTITY
ENTITY
ENTITY
Attempting to clone an error throws an Error with the following message: Trying to clone an uncloneable object of class ClassName.
ENTITY
| ENTITY | ENTITY |
|---|---|
| 8.1.0 | Error::__clone is no longer final. |
这篇文档对你有帮助吗?
谢谢你的反馈!