// Compatible with php7 if(!class_exists('Error')) { class Error extends Exception { } }
貌似是php5沒有Error異常,php7有,為了兼容,當Error類不存在時定義一個空Error類。
感謝