checked exceptions inherit from exception class and are used to handle recoverable errors such as business error scenarios.
已检查异常继承自exception类并用于处理可恢复性出错诸如业务出错场景。
to do that, declare a a special exception class that indicates the result has been signalled already.
为此,需要声明一个专门的异常类,指出已经告知结果。
this exception class is also used by providers to throw exceptions when internal errors occur within the provider that do not map to other pre-existing exception classes.
如果提供程序内发生的内部错误没有映射到其他已存在的异常类,则提供程序也使用此异常类来引发异常。
all you need to do is have the custom exception class extend the exception class and implement the isserializable interface.
只需让定制的异常类扩展exception类并实现 isserializable接口。
this is a generic php exception class that is caught in php scripts.
这是在php脚本中捕获的通用php异常。
spring’s data access facilities automatically translate data-access exceptions into this exception class hierarchy.
spring 的数据访问功能自动将数据访问异常转换为此异常类层次结构。
send useful errors through a custom exception class
通过自定义的异常类传递有用的错误
to see how this works, begin by creating a custom exception class that extends zend_exception, as in listing 13