PHP|异常的使用,异常子类化的最佳实践 构造异常的子类。class XmlException extends Exception{ private $error; function __construct(LibXmlError $error) { $s