Describes the elements of an exception object.
描述异常对象的元素。
Regardless of the object's actual type, the type of the exception object matches the static type of the pointer.
无论对象的实际类型是什么,异常对象的类型都与指针的静态类型相匹配。
The exception object is passed to the corresponding catch and is destroyed after the exception is completely handled.
异常对象将传给对应的catch,并且在完全处理了异常之后撤销。
When an exception is thrown, the static, compile-time type of the thrown object determines the type of the exception object.
当抛出一个表达式的时候,被抛出对象的静态编译时类型将决定异常对象的类型。
To deal with this, you can generate a stack trace in the constructor of the exception object during the throw exception statement.
为了解决这一问题,可以在抛出异常语句期间,在异常对象的构造函数中生成一个堆栈跟踪。
The exception object is created by copying the result of the thrown expression; that result must be of a type that can be copied.
异常对象通过复制被抛出表达式的结果创建,该结果必须是可以复制的类型。
So, to deal with the ambiguities, the comma (,) is substituted with the keyword as when you want to bind the exception object to another name.
所以,为了处理语法不清的问题,在想要将此异常对象与另一个名称绑定时,逗号(,)会被替换成关键字as。
The exception object is managed by the compiler and is guaranteed to reside in space that will be accessible to whatever catch is invoked.
异常对象由编译器管理,而且保证驻留在可能被激活的任意catch都可以访问的空间。
The runtime will stop any exceptions trying to leave a type constructor and wrap the exception inside of a new TypeInitializationException object.
运行库将停止任何尝试保留类型构造函数的异常,并将该异常包装到一个新的TypeInitializationException对象内。
The information gathered by the event handler must be encoded in an error message that's wrapped in an exception object and posted to the parser's client.
事件处理程序采集的信息必须编码在一个错误信息中,该错误信息包装在一个异常对象中提交给解析器客户。
Although only one exception object can emerge when you call a method, a particular method might produce any number of different types of exceptions, all of which need descriptions.
调用一个方法时,尽管只有一个违例对象出现,但一些特殊的方法也许能产生任意数量的、不同类型的违例。所有这些违例都需要说明。
Whenever an exception is thrown while processing your JSP page, the exception object will immediately be thrown to the designated error page by means of the implicitly declared exception variable.
如果在处理jsp页面时有一个异常抛出的话,exception对象就会立即通过隐式声明的exception变量的方式抛给指定的错误页面。
PHP is no exception, with a number of database APIs and variations on data Object patterns available.
PHP也不例外,有很多数据库api和数据对象模式的变体可以选择。
One exception is that if your object has functions, those can obviously not be serialized and saved.
一个例外是假如对象包含函数,那么肯定不会被序列化并保存。
The validation exception in this case is really a byproduct of the validation process, however, and would ideally be hidden from the business object implementation.
但是,在这种情况下,验证异常实际是验证过程的副产品,理想情况下,应该隐藏业务对象的实现。
The old test tried printing the object without the setup, caught the exception if it occurred, then printed with the setup if needed (and gave a message about what happened).
老的测试会试图不借助设置去打印对象,如果发生异常则捕获之,然后如果需要的话借助设置再去打印(并给出一个关于所发生事情的消息)。
Many of these listeners are elements in the CDI model, but an important exception is an object called CDebugTarget.
许多侦听器是cdi模型的元素,但一个重要的例外是一个称为CDebugTarget的对象。
For example, Spring 2.0 introduced the PersistenceExceptionTranslationPostProcessor to automatically enable data access exception translation for any object carrying the @Repository annotation.
比如,Spring2.0引入了PersistenceExceptionTranslationPostProcessor对任何带有@Repository注解的对象自动激活其数据访问异常转换。
MbMessage object is used to create output message tree, environment tree, local environment tree, exception list tree, etc.
MbMessage对象用于创建输出消息树、环境树、本地环境树、异常列表树等等。
The framework's support for Hibernate is in compliance with Spring's generic transaction and data access object (DAO) exception hierarchies.
框架对Hibernate的支持符合Spring通用的事务和数据访问对象(DAO)异常层次结构。
The second parameter, this, is a self-reference to the source object from where the logging of the trace exception occurs.
第二个参数this是对源对象的自引用,在这个源对象中跟踪异常的纪录得以重现。
If you failed to enter right data for your Sap business object, you will encounter a business exception from SapBaseException.
如果您无法为Sap业务对象输入正确的数据,则会遇到来自SapBaseException的业务异常。
The checkRequest() function will throw an exception if the XMLHttpRequest object has not been created or if the request has already been sent.
如果还没有创建XMLHttpRequest对象,或者已经发送了请求,那么checkRequest()函数将抛出一个异常。
The accompanying exception message is "The object... has been modified since it was retrieved."
附带的异常消息为“Theobject…hasbeenmodifiedsinceitwas retrieved .”。
The initialization of x_with_y() with a fallback (object,object) pattern is not necessary if you simply want undefined cases to raise an exception.
如果您只想在遇到未定义的情况时抛出异常,那么就没必要使用落后的 (object,object)模式对 x_with_y()进行初始化。
The new object-oriented features and the addition of exception handling provide compelling reasons for migrating your code from PHP V4 to V5.
新的面向对象特性和异常处理的增加为将代码从PHPV 4迁移到PHP V5提供了强有力的理由。
The method executes and either an object is returned, if successful, or an exception is thrown.
执行该方法,如果成功会返回一个对象,否则抛出异常。
For example, you could configure an exception-handling aspect with an exception-handling strategy object.
例如,可以用异常处理策略对象配置异常处理方面。
The exception to this rule could be a log salvage operation where already saved logical logs are backed up again with the same object name, thereby inactivating the previous version.
不过这条规则也有一个惟一的例外,那就是日志抢救操作,这种操作再次用相同的对象名称来备份已经被保存的逻辑日志,从而使得前一个版本进入不活动状态。
In this case, you must invoke the commit method on the Connection object if all is well; otherwise, invoke the rollback method if an exception occurs.
在本例中,如果一切正常,您必须调用Connection对象上的commit方法;否则,如果出现异常,则调用rollback方法。
应用推荐