您要查找的是不是:
- Use a try block around the statements that might throw exceptions. 在可能引发异常的语句周围使用try块。
- If a function declaration does not specify an exception specification, the function can throw exceptions of any type. 如果一个函数声明没有指定异常说明,则该函数可以抛出任意类型的异常。
- Plus, use Exception objects to determine what error has occurred, throw exceptions back to procedure callers, and create your own Exception classes. 此外,还将学习使用Exception对象确定已发生的错误,将异常抛回过程调用程序,以及创建自己的Exception类。
- 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. 如果提供程序内发生的内部错误没有映射到其他已存在的异常类,则提供程序也使用此异常类来引发异常。
- Between string and base types; throws exception if the conversion is not possible. 和基本类型间转换,如果不能转换抛出异常。
- Older versions of an application would throw exceptions when asked to deserialize new versions of the old type. 在要求反序列化旧类型应用程序的新版本时,该应用程序的较旧版本可能会引发异常。
- Blocks around code that can throw exceptions that you can anticipate and know how to handle. 在可能引发您知道如何处理的可预见异常的代码周围使用。
- Following a call to Close, other operations on the stream could throw exceptions. 调用Close后,在流上进行其他操作会引发异常。
- The Tester-Doer pattern divides a call that might throw exceptions into two parts: a Tester and a Doer. Tester-Doer模式将可能引发异常的调用划分为两部分:Tester和Doer。
- Throw exceptions only to handle truly extraordinary conditions, not to handle predictable events or flow control. 引发异常只是为了处理确实异常的情况,而不是为了处理可预知的事件或流控制。
- If the method throws exception during the operation, the return value is indeterminate because we do not know how JVM handles abnormal situation. 这是香港同事给我的回复,各位朋友觉他说的有没道理?
- Docking in a Carrier or Rorqual ship while having multiple corp hangar windows open should no longer throw exceptions. 当打开多个军团机库窗口时停靠到母鸡或者鲸鱼上会弹出的错误不再出现。
- Furthermore, properties such as IsValid provide a better means of reporting an error than the throwing exception mechanism of a Web test plug-in described earlier. 此外,IsValid之类的属性提供了一个报告错误的方法,该方法比前面介绍的Web测试插件的引发异常机制更好。
- Consider the Tester-Doer pattern for members that may throw exceptions in common scenarios to avoid performance problems related to exceptions. 对于可能在常见方案中引发异常的成员,可以考虑使用Tester-Doer模式来避免与异常相关的性能问题。
- They can perform any program logic, throw exceptions, be overridden, and be declared with any modifiers allowed by the programming language. 它们可以执行任何程序逻辑、引发异常、被重写以及用编程语言允许的任意修饰符进行声明。
- For example, you can provide a way to check preconditions before calling a member so that users can write code that does not throw exceptions. 例如,可以提供一种在调用成员之前检查前提条件的方法,以便用户可以编写不引发异常的代码。
- A true scientific law admits of no exception. 真正的科学定律不允许有例外。
- You should take care to throw exceptions in these situations, so the user will know that the action could not be performed exactly as they requested. 在这些情况下,您应该负责抛出异常,让用户知道他们请求的操作无法按照期望执行。
- There is always an exception to any rule. 任何规律总有例外。
- One reason is because they can be a bit cumbersome to use correctly, especially for object references whose constructors can throw exceptions. 一个原因是因为要正确使用它们有点麻烦,对于其构造器能抛出异常的对象引用来说尤其如此。