Another way of handling this problem would be to throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
处理该问题的另一种方法是:只要泛型类的运行时实例化没有包括所需构造函数,就抛出异常。
This exception is thrown during the verification stage of the linking phase of class loading.
这个异常是在类装入的链接阶段的校验过程中抛出。
In class society everyone lives as a member of a particularclass, and every kind of thinking, without exception, is stamped with the brand of a class.
在阶级社会中,每一个人都在一定的阶级地位中生活,各种思想无不打上阶级的烙印。
This class is close to the model you are trying to produce, with the exception of one important limitation: as defined, a step is not attributed to an actor.
这个类接近于您试图产生的模型,只有一个重要的局限性除外:正如所定义的,step不归因于操作者。
Typical join points in AspectJ include method calls, access to class members, and the execution of exception handler blocks.
AspectJ中典型的joinpoint包括方法调用、对类成员的访问以及异常处理程序块的执行。
THEY may be the exception rather than the norm, but Latin America is clearly capable of producing world-class companies.
极少数的世界一流公司会诞生于拉丁美洲,但巴西航空工业公司的出现却彰显了拉丁美洲在培养世界级公司方面的能力。
An instance of the FOMFactory class is used to generate a new feed with details of the exception being added into this instance.
FOMFactory类的一个实例用于生成一个新提要,包含添加到该实例中异常的细节。
The sole exception is the root of the Scala class hierarchy, Any, which has no parent.
唯一的例外是scala类层级结构中的根,Any,没有父类。
If we had added a getValue method to class Leaf, we would either have to return some sort of flag value indicating that the method application is non-sensical or actually throw an exception.
如果我们已经向Leaf类添加了getValue方法,我们要么是不得不返回一些类型的标志值表明此方法应用是无意义的,要么是实际抛出一个异常。
Unlike the dreaded null-pointer exception (which says nothing about what was expected to occur instead of the null pointer), a class-cast exception is relatively easy to debug.
与可怕的空指针异常(该异常除了报告空指针之外,对于将要发生的事情什么也不说)不同,类强制转换异常相对来说容易调试。
Unlike, for example, a class-cast exception, a null-pointer exception says nothing about what was expected instead of the null pointer.
例如,不像一个类转型异常,空指针异常不给出它所需要的内容的任何信息,只有一个空指针。
Throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
只要泛型类的运行时实例化没有包括所需的构造函数,就抛出异常。
Instead, the error signaled at run time would be a null-pointer exception instead of a class-cast exception.
相反,在运行时发出的错误将会是一个空指针异常而不是类强制转换异常。
If a data logic method in the UserDefinedPushDownMethodsImpl class throws an exception, you can define and create an instance of the same type of exception inside the method.
如果userdefinedpushdownmethodsimpl类中的数据逻辑方法抛出异常,用户可以在方法内部定义并创建一个与异常具有相同类型的实例。
Bug patterns often stem from confusing features of the language or the class library; this bug pattern stems from the somewhat counterintuitive fact that RuntimeException extends Exception.
bug模式通常源自语言的模糊功能或类库;出现此bug模式是因为RuntimeException扩展了Exception,这稍微有点违反常理。
ClassNotFoundException is the most common type of class loading exception.
ClassNotFoundException是最常见的类装入异常类型。
The constructor for the file_lock class accepts the name of the file to be locked, and it's important to open the file before lock is invoked; otherwise, an exception will be thrown.
file_lock类的构造函数接受要锁定的文件的名称,一定要在调用lock之前打开文件;否则会抛出异常。
If the application class cannot be found, does not extend WebApplication, or cannot be instantiated, a runtime exception of type WicketRuntimeException is thrown.
如果应用程序类未能找到、不能扩展WebApplication或不能被实例化,就会抛出wicketruntimeexception类型的运行时异常。
Note the addition of a namespace with the prefix exception that contains the class name, including packages, in the root tag of the XSLT.
注意,在XSLT的根标记中附加了一个带前缀exception 的名称空间,其中包含类名和包名。
For example, Listing 3 creates a function in the ZipMap class that looks up the name of a city given its ZIP code (error and exception-handling code are ommitted for brevity).
例如,清单3在ZipMap类中创建了一个函数,通过给定的ZIP代码查找城市名称(为了简便起见,省略了错误和异常处理)。
In design society every designer lives as a member of a particular class, and every kind of thinking, without exception, is stamped with the brand of a class.
在设计社会中,每一个设计师都在一定的阶级地位中生活,各种思想无不打上阶级的烙印。
ET exception, your new exception class should inherit from one of the.
et的异常,你的异常类应该从一个。
It was once defined by exception as an intermediate social class between the nobility and the peasantry of Europe.
这是一次界定的例外,因为一个中间社会阶层之间的贵族和农民的欧洲。
The method implementations of the original class interface are used to perform the exception handling for the failed methods in the class itself.
原始类接口的方法实现被用来执行该类自身的失败方法的异常处理。
When the user sees an error message, it is derived from the description string of the exception that was thrown, rather than from the exception class.
当用户看到错误消息时,该消息从引发的异常的描述字符串派生,而不是从异常类派生。
The exception that is thrown when an attempt to load a class fails due to the absence of an entry method.
因不存在项方法而导致加载类的尝试失败时引发的异常。
In class society everyone lives as a member of a particular class, and every kind of thinking, without exception, is stamped with the brand of a class.
在阶级社会外,每一个人都在一定的阶级地位外生活,各类思想无不打上阶级的烙印。
This class is used for general alphanumeric input with the exception of whatever characters you specify to not be allowed.
这个类用于一般字母数字的输入,可指定例外的字符。
The serialization runtime or the class of the instance can throw this exception. The argument should be the name of the class.
但是如果你想防止子类的超类是可序列化的可序列化的也可以。
Most of the existing exception propagation analysis methods are limited in intra-class, which can not meet the requirement of software development.
现有异常传播分析方法大多局限于单个类内部,不能满足现实软件开发的需求。
应用推荐