单词 | throw an exception | ||||||||||
释义 | throw an exception
更多释义 收起释义 例句释义: 引发异常,抛出一个异常,抛出异常 1. Unlike destructors , it is often the case that something done inside a constructor might throw an exception. 与析构函数不同,构造函数内部所做的事情经常会抛出异常。 dictsearch.appspot.com 2. Your code can throw an exception in one language and that exception can be caught and understood by an object written in another language. 您的代码可以以一种语言引发异常,该异常可以被用另一种语言编写的对象捕获并理解。 msdn2.microsoft.com 3. Check that the input is in the range of values your program can support and throw an exception if it is not. 检查输入是否在程序可支持的值范围中,如果不在,则引发一个异常。 msdn2.microsoft.com 4. This service code is generated in the form of a skeleton implementation, with service methods that just throw an exception. 此服务代码以框架实现的形式生成,其中包含直接引发异常的服务方法。 www.ibm.com 5. If you attempt to assign an SDO of a different SDO type (another author, perhaps) or a primitive, SDO would throw an exception. 若试图指派一个不同SDO类型的SDO(比如说,另外一名作者)或原生数据类型,SDO将抛出异常。 www.ibm.com 6. If you attempt to call a method such as the Response. Write method, the page will throw an exception. 如果尝试调用方法(如Response.Write方法),则该页将引发异常。 msdn2.microsoft.com 7. The object must not throw an exception if its Dispose method is called multiple times. 如果对象的Dispose方法被多次调用,该对象一定不要引发异常。 msdn2.microsoft.com 8. If there is a match , then you can return the proper results ; if not , you can throw an exception to say that the method was not defined . 如果匹配,那么您可以返回正确的结果;反之,您可以抛出异常,异常内容为:方法未定义。 www.bing.com 9. You may override this and throw an exception if the name is invalid for your use. 您可以重写该实现,并且当名称对于您的使用无效时引发异常。 msdn2.microsoft.com 10. If the string can't be empty or must be in a specific format, check for the format and throw an exception. 如果字符串不能为空或者必须为特定格式,请检查格式并抛出异常。 www.ibm.com 1. Conversely, do not throw an exception if user input is invalid because you can expect users to occasionally enter invalid data. 相反,用户偶尔会输入无效数据,这是可以预见的,因此如果用户输入无效,则不要引发异常。 msdn2.microsoft.com 2. As previously discussed, approximately one-third of the time the service to create the courier id will fail and throw an exception. 如同先前所讨论的,大约创建向导标识时间的三分之一会无效并且抛出异常。 www-128.ibm.com 3. Unlike errors, warnings do not throw an exception if there is no validation event handler. 与错误不同,如果没有验证事件处理程序,警告就不会引发异常。 msdn2.microsoft.com 4. This method should throw an exception if it cannot create a new instance of the specified type. 如果此方法无法创建指定类型的新实例,则它应引发异常。 msdn2.microsoft.com 5. The addition operation does not throw an exception if the result is too large to represent as a pointer on the specified platform. 如果结果太大,无法在指定平台上以指标表示,加法运算不会掷回例外状况。 technet.microsoft.com 6. Keyword is similar to a standard cast, except that rather than throw an exception if the conversion fails, the return value is null. 关键字与标准强制转换类似,不同之处在于:如果转换失败,则返回值为空,而不是引发异常。 msdn2.microsoft.com 7. Even when a collection is synchronized, other threads could still modify the collection, which causes the enumerator to throw an exception. 即使同步处理集合时,其他执行绪依然能够修改集合,而这将造成列举值掷回例外状况。 technet.microsoft.com 8. Throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor. 只要泛型类的运行时实例化没有包括所需的构造函数,就抛出异常。 www.ibm.com 9. If this method does not support logging multiple errors, this method should throw an exception, which aborts serialization. 如果这个方法不支援记录多项错误,这个方法就应该掷回例外状况,以中止序列化。 technet.microsoft.com 10. With the specified name, performing a case-sensitive search and specifying whether to throw an exception if the type is not found. 同时执行大小写敏感的搜索,并指定是否要在没有找到该类型时引发异常。 msdn2.microsoft.com 1. Ensure that your NL product, once released, will not throw an exception due to missing keywords from the translated files. 确保您的本地语言产品一旦发布将不会由于已翻译文件遗漏关键字而抛出异常。 www.ibm.com 2. this event allows the user to do extra checking and , if necessary , throw an exception to stop the operation. 此事件允许用户执行额外的检查,并在必要时引发异常,停止操作。 www.ichacha.net 3. But if it's an unexpected value, you can't deal with it and so must throw an exception rather than continuing along that execution path. 但是如果那是一个不确定的值,你不能那么作,所以抛出一个异常信息要比继续沿着异常的路走要好得多。 www.xue5.com 4. Perform any modifications to these defensive copies of the data. This includes any operations that might throw an exception. 在数据的防御性拷贝进行任何修改,包含任何可能抛出异常的操作。 dictsearch.appspot.com 5. Some programmers expect the parser to throw an exception if it cannot validate the document, but that is not how a SAX parser behaves. 有些程序员期望解析器在无法验证文档时抛出一个异常,但SAX解析器并不这么做。 www-128.ibm.com 6. If a user enters a value that cannot be converted to a date, the validator control will throw an exception. 如果用户输入的值无法转换为日期,验证程序控件将引发异常。 msdn2.microsoft.com 7. Object reference may throw an exception , the compiler may complain that the field might not be initialized . 对象引用的构造器可能抛出异常,编译器可能会报错,说该字段没有被初始化。 www.bing.com 8. Property is not valid and will throw an exception if it is accessed. 属性无效,如果访问它,将引发异常。 msdn2.microsoft.com 9. This method works across disk volumes, and it does not throw an exception if the source and destination are the same. 此方法对整个磁盘卷工作;并且如果源和目标相同,它不会引发异常。 msdn2.microsoft.com 10. Setting this property to a value of -1 does not throw an exception if the value has not yet been changed from its default. 如果这个值尚未从其预设值变更,则将这个属性设定为-1的值将不会掷回例外状况。 technet.microsoft.com 1. The artificial stack limit is chosen by the common language runtime to ensure that enough space remains to throw an exception safely. 通用语言执行阶段会选择是选择人工堆叠限制,以确保有足够的空间能够安全地掷回例外状况。 msdn.microsoft.com 2. Statement objects. Statement objects that have overloads with result set holdability parameters will throw an exception when called. 包含带有结果集保持能力参数的重载的语句对象会在调用时引发异常。 msdn2.microsoft.com 3. Even if the collection is synchronized, other threads can still modify the collection, causing the enumerator to throw an exception. 即使集合已同步,其他线程仍可以修改集合,从而使枚举数引发异常。 msdn2.microsoft.com 4. Since Kid uses XML, all the templates must be well formed, or they will throw an exception during rendering. 由于Kid使用了XML,因此所有的模板都必须很好地进行格式化,否则在呈现时就会抛出异常。 www.ibm.com 5. Gets or sets a value that indicates whether to throw an exception if the serializer encounters unexpected elements or attributes. 获取或设置一个值,该值指示在序列化程序遇到意外元素或属性时是否引发异常。 msdn2.microsoft.com 6. (Otherwise, Derby would throw an exception when it tried to create a table that already existed). (否则,Derby将在尝试创建一张已经存在的表时抛出异常)。 www.ibm.com 7. True to throw an exception if method cannot be bound; otherwise, false. 为true,表示无法绑定method时引发异常;否则为false。 msdn2.microsoft.com 8. Parameters specify whether to provide a Unicode byte order mark and whether to throw an exception when an invalid encoding is detected. 参数指定是否提供Unicode字节顺序标记,以及是否在检测到无效的编码时引发异常。 msdn2.microsoft.com 9. However, attempting to add another copy will not throw an exception. Instead, the addition will simply fail. 但是,尝试添加另一副本不会引发异常,只是添加操作将会失败。 msdn2.microsoft.com 10. When you publish it to outside clients, you want to check the arguments and throw an exception if the arguments are invalid. 当你将它向外界的客户公布时,你要检查实参并且如果实参无效,你要给出一个例外。 www.ibm.com 1. This code will not insert the trade order into the TRADE table as expected, nor will it throw an exception. 这段代码不会像预期那样向TRADE表插入交易订单,也不会抛出异常。 www.ibm.com 2. In a well-designed application, using resources should never throw an exception. 在设计良好的应用程式中,资源的使用应该从来不会掷回例外状况。 msdn.microsoft.com 3. Calling this API accomplishes the task, while create_directory, with the same argument, will throw an exception. 可调用此API完成任务,但使用相同的参数调用create_directory时将引发异常。 www.ibm.com 4. If the server script does not check the data, either the database will throw an exception or the database will be compromised. 如果服务器脚本不检查数据,要么数据库抛出异常,要么数据库安全会受到影响。 www.ibm.com 5. An empty string value for this property will cause the configuration system to throw an exception when the object is serialized. 序列化对象时,此属性的空字符串值将导致配置系统引发异常。 msdn2.microsoft.com 6. Grants the configuration object the permission to throw an exception if an error occurs during initialization. 向配置对象授予权限,使其在初始化期间发生错误时引发异常。 msdn2.microsoft.com 7. Introduces a type conversion operation that does not throw an exception. 引入不引发异常的类型转换操作。 msdn2.microsoft.com 8. The statement at the end of the path could potentially throw an exception. 位于路径末尾的语句可能会引发异常。 msdn.microsoft.com 9. MQ methods will throw an exception whenever the completion code or reason code resulting from an MQ call is not zero. 每当MQ调用产生的完成或原因代码不为零,MQ方法就会引发异常。 www.ibm.com 10. One thing worth knowing: When you run a program with this UI threading issue from within Visual Studio, it will always throw an exception. 有一件事需要清楚——当你在VisualStudio中运行一个带UI线程的程序时,总是会抛出一个异常。 archive.cnblogs.com 1. Convert to a native int (on the stack as native int) and throw an exception on overflow. 转换为nativeint(在堆栈上为nativeint)并在溢出时引发异常。 msdn2.microsoft.com 2. SQL CE only allows one connection to the database, so opening an already open connection will throw an exception. SQLCE只允许一个到数据库的连接,因此试图打开一个已打开的连接会引发异常。 msdn2.microsoft.com 3. For example, the divide instruction is not considered to be the end of an executable unit despite the fact that it can throw an exception. 例如,divide指南并没有认为是一个可执行单元的结尾,尽管有例外情况的存在。 www.ibm.com 4. Throw an exception that you define for this application. 引发您为此应用程序定义的异常。 msdn2.microsoft.com 5. Operation that incurs the performance cost - although it is unusual to throw an exception without first creating one. 操作尽管在没有预先创建异常的情况下就抛出异常是有点不寻常。 www-128.ibm.com 6. Method does not throw an exception if the conversion fails. 方法在转换失败时不引发异常。 msdn2.microsoft.com 7. If you make a call to a DispatcherObject from a non-UI thread, it will throw an exception. 如果您从非UI线程调用DispatcherObject,就会引发异常。 msdn.microsoft.com 8. Be aware that setting the property to false causes the code that triggered the problem to throw an exception. 请注意,将此属性设置为false会导致触发问题的代码引发异常。 msdn2.microsoft.com 9. If the underlying stream is not seekable, this property will typically throw an exception. 如果基础流是不可查找的,通常此属性将引发异常。 msdn2.microsoft.com 10. Methods throw an exception with the message, "Cannot get value from a deleted row" . 方法会引发异常,并显示消息“无法从已删除的行获取值”。 msdn2.microsoft.com 1. If you set preconditions on unfiltered input data, the contract may fail and throw an exception. 如果您对未筛选的输入数据设置的先决条件,合同可能会失败并引发异常。 msdn.microsoft.com 2. The key is to not crash your program or throw an exception that stops processing. 关键是不使程序崩溃或抛出异常而中止处理。 www.ibm.com 3. Simply, you get the ability to throw an exception without specifying that you do so. 您只是获得了抛出一个异常而不用您指定这样做的能力。 www-128.ibm.com 4. There were two options for what should happen when the retrieval timeout occurs: return null or throw an exception. 对于在检索超时发生时应当发生的事情,有两个选择:返回null或者引发异常。 www.cnblogs.com 5. To the same setting your provider should throw an exception and cease operation. 应用于同一设置,则提供程序应引发异常并终止操作。 msdn2.microsoft.com 6. To roll back the transaction, throw an exception prior to calling the Complete method. 若要回滚事务,请在调用Complete方法之前,引发异常。 msdn2.microsoft.com 7. Throw an exception at run time when there is no matching constructor. 当没有匹配的构造函数时,抛出运行时异常。 www.ibm.com 8. Also, it's not ideal to simply throw an exception when no matching constructor exists. 而且,当不存在任何匹配的构造函数时就抛出异常也不太理想。 www.ibm.com 9. Floating-point operations never throw an exception. 浮点运算永远不会引发异常。 technet.microsoft.com 10. An HTTP request will fail and throw an exception if no thread is available in the thread pool. 如果线程池中没有线程可用,HTTP请求将失败并引发异常。 msdn2.microsoft.com 1. Some problems, like no response form the server are fatal and throw an exception. 一些问题,像服务器端没有相应非常致命,并抛出异常。 www.cnblogs.com 2. whereas, a case-insensitive hash table would throw an exception when adding the second object. 而不区分大小写的哈希表在添加第二个对象时将引发异常。 technet.microsoft.com 3. This response should throw an exception because the temperature value is not a float type -- it is actually a string. 这个响应会抛出一个异常,因为温度的值不是浮点类型―它实际上是一个字符串。 www.ibm.com 4. If a query uses a combination of columns that are not indexed, GAE will only throw an exception at run time when the query is executed. 如果查询使用没有进行索引的列的组合,那么当执行查询时,GAE将只在运行时出现一个异常。 www.ibm.com 5. If you want to abort the connection, the delegate must throw an exception. 如果您希望中止连接,则该委托必须引发异常。 msdn2.microsoft.com 6. Option so that if there is any error in allocating memory, it does not throw an exception but rather returns a NULL pointer. 选项,这样当分配内存出错时,就不会触发异常,而是返回一个空指针。 www-128.ibm.com 7. To respond to user errors and to run-time error conditions such as network errors or permission failures, throw an exception. 若要响应用户错误和运行时错误条件(例如网络错误或权限失败),应引发一个异常。 msdn2.microsoft.com 8. If you separate the operations that can throw an exception from those that can't, the problem becomes more tractable. 如果将可能抛出异常的操作与不会抛出异常的操作分开,那么问题就更容易处理了。 www.ibm.com 9. Attempts to remove a static control will throw an exception. 尝试移除静态控件将引发一个异常。 msdn2.microsoft.com 10. So this API is to invoke a service where that does not have a return value but that could throw an exception. 因此,此API用于调用并不返回值但可能引发异常的服务。 www.ibm.com 1. The Tester performs a test for the state that can cause the Doer to throw an exception. Tester对可能导致Doer引发异常的状态执行测试。 msdn2.microsoft.com 2. By default, any call to new that fails will throw an exception. 默认情况下,任何对new的调用失败都将引发异常。 msdn2.microsoft.com 3. Throw an exception specific to the problem. 引发特定于问题的异常。 msdn2.microsoft.com 4. The final example shows how to handle those cases when you must throw an exception during execution of a query. 最后的范例显示在必须于查询执行期间掷回例外状况时,如何处理这些情况。 technet.microsoft.com 5. If the list is null, require will throw an exception. 如果这个列表是null,require会抛出一个异常。 www.bing.com 6. Emits an instruction to throw an exception. 发出指令以引发异常。 msdn2.microsoft.com 7. If an address is restricted, addCallObserver and addObserver will throw an exception. 如果地址是有限的,addCallObserver和addObserver将抛出一个异常。 blog.sina.com.cn 8. If you compiled this code with two different static compilers, the resulting code from one may throw an exception while the other may not. 如果您用两个不同的静态编译器编译这段代码,其中一个结果代码将抛出一个异常,而另一个则不会。 www-128.ibm.com 9. More support for testing whether code does or doesn't throw an exception. 为测试提供了更多的支持,无论代码是否抛出异常。 www.infoq.com 10. Unless you change this property, a command that runs for over 30 seconds will time out and throw an exception. 除非更改此属性,否则运行30秒后,命令就会超时,并且将抛出一个异常。 www.ibm.com 1. Unless you change this property, a command that runs for over 30 seconds will time out and throw an exception. 除非更改此属性,否则运行30秒后,命令就会超时,并且将抛出一个异常。 www.ibm.com 2. To respond to user errors and run-time conditions such as network errors or permissions failures, throw an exception. 若要回应使用者错误和执行阶段状况(例如,网路错误或使用权限失败),请掷回例外状况。 technet.microsoft.com 3. Throw an exception when the user clicks Cancel. 在用户单击“取消”时引发异常。 msdn2.microsoft.com 4. The method uses a test to prevent the call to the Doer (ProcessMessage) when the Doer would throw an exception. 该方法利用一个测试来避免在Doer将引发异常时调用Doer(ProcessMessage)。 msdn2.microsoft.com 5. Execute non- transactionally, throw an exception if a transaction exists. 以非事务方式执行,如果以事务方式执行,则抛出异常。 dictsearch.appspot.com 6. When that behavior is seen, your connector will throw an exception any time '*' and '? ' are used as literals instead of wildcards. 如果是这种情况,每当‘*’和‘?’用作文字而不是通配符时,连接器应该抛出异常。 www.ibm.com 7. When errors occur, the function generating the error can 'throw' an exception. For example, take a sample function that does division. 错误发生的时候,产生错误的函数会“抛出”一个异常。以一个做除法运算的函数为例来说明。 www.cnblogs.com 8. Of course, those functions don't have any implementations yet, so calling them will just throw an exception. 当然,那些函数也没有任何实现,所以调用它们将只抛出异常。 www.ibm.com 9. The basic program in Listing 1 contains three methods that can all throw an exception. 清单1中的基本程序包含三个方法,这三个方法都可抛出异常。 www.ibm.com 10. The following code example shows a method that can throw an exception. 下面的代码示例演示一个可引发异常的方法。 msdn2.microsoft.com 1. For instance, Linda stated that a stack should throw an exception if a user attempted to place null onto it. 例如,Linda说,如果用户试图将null放到栈上,那么栈应该抛出一个异常。 www.ibm.com 2. For equivalent instructions that will throw an exception when the result type can not properly represent the result value. 有关在结果类型无法正确表示结果值时将引发异常的等效指令,请参见。 msdn2.microsoft.com 3. The second is that the code calls a method that can throw an exception without handling it. 第二,代码调用一个可能抛出异常的方法,但没有处理该异常。 www.ibm.com 4. This is important to know if you are expecting your test to throw an exception. 在预料到测试会抛出异常时,这一点很重要。 www.ibm.com 5. Typically this item must be of a type expected by the recipient collection, or the collection will throw an exception of type 通常,此项必须为收件人集合所期望的类型,否则该集合将引发 msdn2.microsoft.com 6. If you do not, the application will throw an exception, because the primary domain controller is unavailable to resolve the 若不这样做,应用程序将引发异常,因为主域控制器不能用于将 msdn2.microsoft.com 7. In Java code, statements that are expected to throw an exception or a warning are enclosed in a 在Java代码中,希望抛出异常或者警告的语句包含于 www-128.ibm.com 8. Nearly everything can throw an exception 几乎每一样东西都可以抛出异常 www.ibm.com |
||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。