用实例分析PHP5异常处理
时间:2008-07-03 来源:sinkingboat
getCode();返回我的值 123,这样我就可以自定义错误代码号
throw new Exception($message,$code);
//学JAVA的注意,PHP异常处理没有throws
?>
__toString();
}
?>
getMessage(),$e->getCode(), "\n
"; //显示$error和123456
}
echo '继续执行';
?>
相关阅读 更多 +
时间:2008-07-03 来源:sinkingboat