If an object method needs to report an error, then a return code should be used.
假如一个对象的方法需要报告一个错误,这时一个返回码需要用到。
If validation fails, the error message associated with the failing validation method for the object is added to an error list.
如果检验失败,那么把与失败的对象检验方法相关联的错误消息添加到错误列表。
If the error resulted from a call on the database object, you would invoke those methods on the database object instead.
如果错误是由于调用数据库对象而产生的,那么可以在那个数据库对象上调用上述两个方法。
Both languages lean toward strong typing because both throw error messages when you try to use an object outside of its intended type structure.
这两种语言都倾向于强类型,因为当您试图使用一个它们期望之外的类型结构的对象时,它们都会抛出错误消息。
It is a usage error to specify more than one object with the same (or missing) language identifier.
将一个以上的对象指定为相同(或没有指定)语言标识符是错误的做法。
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.
事件处理程序采集的信息必须编码在一个错误信息中,该错误信息包装在一个异常对象中提交给解析器客户。
It first checks to see whether the content returned to the user represents a fault object, meaning that it is returning an error to the user.
它首先检查看返回给用户的内容代表一个错误对象,也就是说它返回一个错误给用户。
When there is an error due to policy violations based on the current white list in effect, the proxy sends a custom JSON error object back to the browser. See listing 1.
根据当前生效的白名单,因策略违规而导致错误时,代理会向浏览器发送一个自定义的JSON错误对象,如清单1所示。
But the event message told me the User ID that generated the error, the API call that failed, the object that was the target of the API call, and the options that were used.
但事件消息能告诉我生成错误的用户ID、失败的API调用、API调用的目标对象以及所使用的选项。
I emit an error message and replace the return value with 0, instead (remember: every inline code block returns an object).
我发出错误信息,将返回值替换为0(请记住:每个内联代码块都返回一个对象)。
Error detection example 3: Purify object and reference graph.
错误检测实例3:Purify对象和指针图。
With a preallocated Runnable object and a separate scope, you should always be in a position to report a problem without using any memory in the context the error occurred.
通过一个预先分配的Runnable对象和一个单独的作用域,在错误发生时,您就应该总是能够报告问题,而无需使用任何内存。
The Web services client invokes the methods of the WS.Handler object on every request, response, and error.
Web服务客户机将针对每个请求、响应和错误调用 WS.Handler对象的各个方法。
This demonstrates that we can return a fault object even if a true runtime error didn't occur.
这显示出,即便未发生真正的运行时错误,我们也可以返回一个fault对象。
An error is returned to the client if no matching entry is found in inclexcl.def because it is essential that each backup object is bound to a management class.
如果在inclexcl .def中发现不匹配条目,则向客户机返回一条错误,因为将每个备份对象绑定到管理类非常重要。
When you call the retrieve operation, the SapReturn business object contains the BAPI messages or error codes that result from the BAPI call.
当调用检索操作时,SapReturn业务对象包含从BAPI调用产生的BAPI消息或错误代码。
The page starts with any error messages on the recipe object.
页面首先显示 recipe对象的错误消息。
First, the error object is examined to determine whether or not a file property contains a value.
其一,检查此错误对象以确定file属性是否包含一个值。
You see the SQL0440N error message from Listing 2 for object TEST.v2.
您会在清单 a 中看到 TEST.v2对象的SQL0440N错误消息。
The prefix is then used much like an object name to call the throwException() method with an error string as the argument.
然后这个前缀被像一个对象名那样用来调用 throwException()方法,调用时以一个错误字符串作为参数。
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变量的方式抛给指定的错误页面。
A CodeIssue consists of a severity level (Information, Warning, or error), a Span object indicating where the error is located, and a description of the error.
CodeIssue中会包含严重等级(信息、警告还是错误)、表示错误发生位置的Span对象以及对错误的描述。
Error_message_on - returns the error string for the specified attribute of the object.
error_message_on——返回指定的对象属性的错误字符串。
This error can occur if the Hibernate session and associated database connection is closed after the object was retrieved, but before the association was accessed.
如果在获取对象之后关闭Hibernate会话和相关联的数据库连接,在访问关联之前没有恢复,那么就会发生这种错误。
Next, you step through each of the errors you encountered and invoke the libxml_display_error function for each error object.
接下来,遍历遇到的每个错误并为每个错误对象调用libxml_display_error函数。
error_messages_for - returns an error list for the specified object(s)
error_messages_for ——返回指定对象的错误列表
You can call methods on the log object that correspond to the desired log level: debug, info, error, and so on. (See Resources for more information on logging.)
可以调用log对象上与想要的日志级别相对应的方法,这些日志级别包括:debug、info和error等(参见参考资料了解关于日志记录的更多信息)。
(the other examples are so obscure that they aren't worth mentioning in an article of this nature.) Attempting to pickle a file object results in the following error.
例如,Python不能pickle文件对象(或者任何带有对文件对象引用的对象),因为Python在unpickle时不能保证它可以重建该文件的状态(另一个示例比较难懂,在这类文章中不值得提出来)。
When testers play back the saved scripts against the upgraded application, playback might return an error that indicates that an object cannot be found.
当测试员根据升级的程序来测试保存的脚本时,回馈可能会返回一个错误,说不能找到对象。
In principle, creating such code is not particularly difficult, but can be somewhat tedious and error prone to write, especially if the data object is large and contains nested objects and arrays.
原则上,创建此类代码不是特别困难,但可能让人感到有些枯燥无味,而且在编写时也容易出错,特别是在数据对象比较大并包含嵌入的对象和数组时。
应用推荐