Avoid defining custom exception classes.
避免定义自定义的异常类。
Consider defining standard DAO exception classes.
考虑定义标准dao异常类。
Core — Base exception classes and environment information.
core—基本异常类和环境信息。
These standard exception classes are also intended to be used in the programs we write.
程序员可在自己编写的程序中使用这些标准异常类。
So, in your situation: your application exception classes are subclasses of RuntimeException.
因此,对于您的情况:您的应用程序异常类是RuntimeException的子类。
Exceptions: SPL provides a set of standard Exception classes each meant to indicate a certain problem type.
异常:SPL规定了一套标准异常类,每个类都标识了一类确定的问题。
If you find yourself defining more than a couple of levels of inheritance in your exception classes, review your work.
如果您发现在异常类中定义了两层以上的继承级别,那么就要检查一下。
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.
如果提供程序内发生的内部错误没有映射到其他已存在的异常类,则提供程序也使用此异常类来引发异常。
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.
异常类是只能在应用程序执行期间加载的类的另一个例子,因为异常在理想情况下(但不一定会遇到这种情况)很少发生。
When the server reports an unexpected exception, you can examine the classes and methods of the associated stack trace to determine which application caused, or was involved in, the exception.
当服务器报告一个意外的异常时,您可以检查关联堆栈跟踪的类和方法,来确定哪个应用程序导致了异常或者与异常有关。
If such classes are not available at runtime, it'll throw that exception.
如果这样的类在运行时不可用,它会抛出该异常。
As with the SAX and DOM factory classes, one exception handles requested — but unsupported — features, and another exception handles instantiation errors.
对于SAX和DOM工厂类,一个异常处理已请求的但不受支持的特性,另一个异常处理实例化错误。
Also included with this article are additional sections on the unified domain classes in JMS 1.1, exception handling, transport bindings, and other best practices.
本文还包括有关JMS 1.1中的统一域类、异常处理、传输绑定和其他最佳实践等信息。
Let's say that you wanted consistent exception handling for all of the classes in your application.
假定对应用程序中的所有类有统一的异常处理。
In Part 1 of this series, your first step is to import Apache POI along with exception and file-handling classes (see Resources for the link to Part 1).
在本系列的第1部分中,第一步是导入ApachePOI以及异常和文件处理类(参见参考资料中到第1部分的链接)。
Create two UML classes, DrawingSurface and GraphicException, to be used as a parameter type and exception type, respectively, for the sample method.
创建两个uml类,DrawingSurface和GraphicException,分别用做示例方法的参数类型和异常类型。
It would have been better to allow multiple instances of logging and exception-handling classes.
如果允许日志记录和异常处理类有多个实例则会更好。
By further examining the exception package and noting the ratio of abstract to concrete classes, you can derive another metric: abstractness.
通过进一步检查exception包并注意抽象到具体类的比率,可以派生出另一个度量:抽象性。
As Figure 1 illustrates, the classes that comprise the TCS prototype are bundled into four packages: the transaction package, the service package, the utility package, and the exception package.
如图1所说明的,组成TCS原型的类放入四个包中:transaction包、service包、utility包,和exception包。
The problem of outlier mining has been variously called outlier analysis, anomaly detection, exception mining, detecting rare events, mining rare classes, deviation detection, etc.
孤立点挖掘又称孤立点分析、异常检测、例外挖掘、小事件检测、挖掘极小类、偏差检测。
Asian trading today was very thin across asset classes -currencies no exception to the end of year markets that reign.
在接近年底之际,今日亚洲汇市上资产类股的交投非常薄弱——货币也不例外。
Design classes so that an exception is never thrown in normal use.
类的设计应使在正常使用中从不引发异常。
Students requesting an exception or having any question about their background should talk to the Professor before the end of the first week of classes.
学生若有例外的要求或是有其他关于课程条件疑问,须在课程第一周结束前提出。
With the exception of enumerators, all regular expression classes are thread safe or can be converted into thread-safe objects by a synchronized method.
除枚举数之外,所有正则表达式类都是线程安全的或者可以通过同步方法转换成线程安全对象。
With the exception of enumerators, all regular expression classes are thread safe or can be converted into thread-safe objects by a synchronized method.
除枚举数之外,所有正则表达式类都是线程安全的或者可以通过同步方法转换成线程安全对象。
应用推荐