Consider defining standard DAO exception classes.
考虑定义标准dao异常类。
Core — Base exception classes and environment information.
core—基本异常类和环境信息。
So, in your situation: your application exception classes are subclasses of RuntimeException.
因此,对于您的情况:您的应用程序异常类是RuntimeException的子类。
If you find yourself defining more than a couple of levels of inheritance in your exception classes, review your work.
如果您发现在异常类中定义了两层以上的继承级别,那么就要检查一下。
Avoid defining custom exception classes.
避免定义自定义的异常类。
These standard exception classes are also intended to be used in the programs we write.
程序员可在自己编写的程序中使用这些标准异常类。
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.
如果提供程序内发生的内部错误没有映射到其他已存在的异常类,则提供程序也使用此异常类来引发异常。
Exceptions: SPL provides a set of standard Exception classes each meant to indicate a certain problem type.
异常:SPL规定了一套标准异常类,每个类都标识了一类确定的问题。
Exception classes are another example of classes that may not load until well into an application's execution, because exceptions are ideally (though not always) rare occurrences.
异常类是只能在应用程序执行期间加载的类的另一个例子,因为异常在理想情况下(但不一定会遇到这种情况)很少发生。
Exception classes are another example of classes that may not load until well into an application's execution, because exceptions are ideally (though not always) rare occurrences.
异常类是只能在应用程序执行期间加载的类的另一个例子,因为异常在理想情况下(但不一定会遇到这种情况)很少发生。
应用推荐