在这个异常对象内可以看到一个堆栈跟踪。
下表列出并介绍了一个异常对象的属性。
The following table lists and describes an exception object's properties.
描述异常对象的元素。
在异常的整个生存期内,异常对象和类型可能会发生更改。
The exception object and type may change throughout the life of the exception.
异常对象将传给对应的catch,并且在完全处理了异常之后撤销。
The exception object is passed to the corresponding catch and is destroyed after the exception is completely handled.
公共语言运行时支持基于异常对象和受保护代码块概念的异常处理模型。
The common language runtime supports an exception handling model based on the concepts of exception objects and protected blocks of code.
无论对象的实际类型是什么,异常对象的类型都与指针的静态类型相匹配。
Regardless of the object's actual type, the type of the exception object matches the static type of the pointer.
异常对象通过复制被抛出表达式的结果创建,该结果必须是可以复制的类型。
The exception object is created by copying the result of the thrown expression; that result must be of a type that can be copied.
为了解决这一问题,可以在抛出异常语句期间,在异常对象的构造函数中生成一个堆栈跟踪。
To deal with this, you can generate a stack trace in the constructor of the exception object during the throw exception statement.
当抛出一个表达式的时候,被抛出对象的静态编译时类型将决定异常对象的类型。
When an exception is thrown, the static, compile-time type of the thrown object determines the type of the exception object.
异常对象由编译器管理,而且保证驻留在可能被激活的任意catch都可以访问的空间。
The exception object is managed by the compiler and is guaranteed to reside in space that will be accessible to whatever catch is invoked.
事件处理程序采集的信息必须编码在一个错误信息中,该错误信息包装在一个异常对象中提交给解析器客户。
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.
所以,为了处理语法不清的问题,在想要将此异常对象与另一个名称绑定时,逗号(,)会被替换成关键字as。
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.
广度指的是超出本文范围的那些特性,比如抽象类、接口、迭代器接口、反射、异常和对象复制。
By breadth, I mean the features that were beyond the scope of this article, such as abstract classes, interfaces, the iterator interface, reflection, exceptions, and object cloning.
如果无法找到这个共享内存对象,就会抛出异常。
If the Shared memory object cannot be found, an exception is thrown.
事件,例如方法或者构造器调用,类或者对象初始化,以及异常,这些都是有效的aop触发器。
Events, such as methods or constructor calls, classes or object initialization, and exceptions, are all valid AOP triggers.
如果还保存了其他域对象,现在将引发一个异常。
If some other domain object is being saved, for now, an exception will be thrown.
它具有属性,但如果尝试设置其不包含的属性,它不会引发异常,这一点与普通数据对象不同。
It has properties, but if you try to set a property of it which is does not contain, it will not throw an exception like normal data objects.
但是,在这种情况下,验证异常实际是验证过程的副产品,理想情况下,应该隐藏业务对象的实现。
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 method executes and either an object is returned, if successful, or an exception is thrown.
VM对象包含了表示当前线程执行的数据结构,例如当前的块、绑定以及异常等。
The VM object contains data structures for the very specific thread execution, like for instance current blocks, bindings, exceptions, etc.
修复这类异常的最简单方式就是仔细检查对象要转换到的类型是否符合以上提到的规则。
The easiest way to fix such exceptions is to carefully check that the type to which an object is being cast conforms to the rules mentioned above.
例如,可以用异常处理策略对象配置异常处理方面。
For example, you could configure an exception-handling aspect with an exception-handling strategy object.
如果文档没有被解析且对象在30秒内进行持久化,则服务器将抛出一个异常且对象将不会创建。
If the document is not parsed and the objects made persistent within 30 seconds, then the server will throw an exception and the objects will not be created.
以前可以比较的对象在进行比较时却引发了异常。
Previously comparable objects started raising exceptions when compared.
如果没有异常发生,就应该用一个真值参数调用这个对象的callback方法。
If no exceptions occur, the object's callback method should be called with a parameter of true.
如果您无法为Sap业务对象输入正确的数据,则会遇到来自SapBaseException的业务异常。
If you failed to enter right data for your Sap business object, you will encounter a business exception from SapBaseException.
如果在处理jsp页面时有一个异常抛出的话,exception对象就会立即通过隐式声明的exception变量的方式抛给指定的错误页面。
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.
因为所有的操作、条件和异常都来自于MailRule文档,所以使用Document对象来初始化对象。
Because all of these (actions, conditions, and exceptions) come from the Mail Rule document, the objects are initialized with a document object.
例如,如果无法创建共享内存对象,就抛出类型为boost: interprocess_exception的异常。
For example, if the Shared memory object cannot be created, an exception of type boost: : interprocess_exception is thrown.
应用推荐