php抛出异常:throw new Exception("xxxxxx!");
实例代码:
1 try{ 2 3 if ($mysqli->connect_errno) { 4 sleep(2); 5 throw new Exception("Connect failed!"); 6 } 7 8 }catch(Exception $e){}
php抛出异常:throw new Exception("xxxxxx!");
实例代码:
1 try{ 2 3 if ($mysqli->connect_errno) { 4 sleep(2); 5 throw new Exception("Connect failed!"); 6 } 7 8 }catch(Exception $e){}
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。