当你开始追捕例外和例外情形时,自动载荷控制器的错误流行:
Argument 1 passed to Controller_Exception:: __construct () must be an instance of Autoloader_Exception, string given, Called in source
try {} catch (Autoloader_Exception $ e){ throw new Controller_Exception ( Some Error ); }}
Controller_Exception class { public function __construct ($ Autoloader_Exception e) { } }
问题2,我如何建立例外类别? 是否有任何人知道一个很好的例子?