通过引发异常来报告执行故障。
索引可以因参数无效而引发异常。
如果回调方法引发异常,则asp。
序列化期间可能会引发异常。
浮点运算永远不会引发异常。
如果服务引发异常,则此代码将进入catch块。
If the service throws an exception, then this code falls into the catch block.
如果预料不会超时,则引发异常可能是一种更好的选择。
If timeouts are not expected, then throwing an exception might be a better choice.
如果在异常子句中引发异常,则会大大增加调试的难度。
When an exception is raised in an exception clause, it greatly increases the difficulty of debugging.
另外,建议在超时过期时引发异常而不是返回错误代码。
In addition, it is recommended that you throw an exception when a time-out expires instead of returning an error code.
如果尝试在未初始化的情况下使用它们,它们将会在运行时引发异常。
If you try to use them without initializating them, they will throw exceptions at runtime.
因此,此api用于调用并不返回值但可能引发异常的服务。
So this API is to invoke a service where that does not have a return value but that could throw an exception.
这极为简单,使用错误的参数类型调用构造函数或方法时,会引发异常。
This is extremely simplistic and leads to an exception being thrown when a constructor or method is called with the wrong argument types.
SCA并不定义对返回值或声明要引发异常的方法的非阻塞调用的机制。
SCA does not define a mechanism for making non-blocking calls to methods that return values or are declared to throw exceptions.
务必记住,如果未指定缺省目标并且没有匹配的日期条目,则会引发异常。
Keep in mind that if you do not specify a default destination and no date range entry matches, then an exception will be thrown.
例如,包含用户的jpeg图像的属性不受支持,并将引发异常。
Attributes that contain, for example, a JPEG image of the user are not supported and an exception will be thrown.
对于目录的情况,如果目录的内容不为空,则此例程将引发异常。
In the case of a directory, if the contents of the directory are not already empty, this routine throws an exception.
可以使用第二个参数控制在遇到无法映射的字符时是否引发异常。
You can use the second parameter to control throwing an exception on unmappable characters.
此服务代码以框架实现的形式生成,其中包含直接引发异常的服务方法。
This service code is generated in the form of a skeleton implementation, with service methods that just throw an exception.
例如,假设应用程序域a创建应用程序域b,后者执行引发异常代码。
For example, suppose Application Domain a creates Application Domain B, which executes code that throws an exception.
即使集合已同步,其他线程仍可以修改集合,从而使枚举数引发异常。
Even when a collection is synchronized, other threads can still modify the collection, which causes the enumerator to throw an exception.
此时,如果数据库检测到任何错误,都会造成提交进程停止并引发异常。
At this point, any errors detected by the database cause the submission process to stop, and an exception is raised.
下面的示例通过在调用失败时检查错误代码并引发异常修复了前面的冲突。
The following example fixes the previous violation by checking the error code and throwing an exception when the call fails.
如果您对未筛选的输入资料设置的先决条件,合同可能会失败并引发异常。
If you set preconditions on unfiltered input data, the contract may fail and throw an exception.
有时您所从属的插件,特别是那些从属于 workbench 的插件,可能引发异常。
Sometimes plug-ins that you depend on, especially those that depend on the workbench, may throw exceptions.
清单7提供了重命名文件的小示例,在from路径中的文件不存在时引发异常。
Listing 7 provides a small example of a file is being renamed, except that the file in the from path doesn't exist.
对于在检索超时发生时应当发生的事情,有两个选择:返回null或者引发异常。
There were two options for what should happen when the retrieval timeout occurs: return null or throw an exception.
它具有属性,但如果尝试设置其不包含的属性,它不会引发异常,这一点与普通数据对象不同。
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.
对于具有超时的异步操作,在首次访问操作结果时,应该调用回调函数并引发异常。
In the case of an asynchronous operation with a time-out, the callback function should be called and an exception thrown when the results of the operation are first accessed.
务必记住,如果未指定缺省目标并且没有匹配选择条件的日期范围条目,则会引发异常。
Keep in mind that if you do not specify a default destination and no date range entry matches the selection criterion, then an exception will be thrown.
这个属性可以告诉编译器,使用该属性声明的函数以及它调用的后续函数都不会引发异常。
This attribute is a hint to the compiler that the function declared with this attribute and the subsequent functions it calls do not throw an exception.
应用推荐