-1
當你開始捕捉異常,異常自動加載機控制器錯誤彈出:例外 - 比如錯誤
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) { } }
問題二,如何建立一個異常類?有人知道一個很好的例子嗎?
你使用什麼語言?你能提供一些背景嗎? –
什麼是*第一個*問題? – Peter