This incompatibility between platforms is particularly dangerous as it might cause programs to return wrong results rather than causing a compile-time error.
不同平台之间的不兼容性尤其危险,因为它可能会导致程序返回错误结果,而不是编译时错误。
This construct is used to return to the calling application the actual error that caused the statement to fail, as shown in Listing 17.
该结构用于将实际的错误返回给调用应用程序,这个错误致使语句执行失败,如清单17所示。
To generate user errors from procedures, you can use the SQLERROR variable to return an actual error string that caused the statement to fail to the calling application, as shown in Listing 16.
要从过程生成用户错误,可以使用SQLERROR变量检索一个实际的错误字符串,该错误字符串使语句无法作用于调用应用程序,如清单16所示。
Changing the return type to float, for example, isn't flagged as an error because an int in the test method's return statement is automatically promoted to float.
如果将返回值改为float,这不会被标记成错误,因为test方法返回语句中的int会自动转换成float。
Either side can return an error, such as defined below.
任何一边都可能返回一个错误,如下面所定义。
you could create a function such as the following, which also handles the return code and, if needed, increases the error counter
而是创建一个如下所示的函数,此函数也可以处理返回码,如果有必要,还可以增加错误计数器
The validator method receives the user's input as a parameter and may return an error message, which is stored in a JSP variable named validationError.
validator方法将用户输入作为参数,并且可能会返回一条错误消息,保存在一个名为 validationError 的JSP变量中。
So, for example, <xsl:for-each select="$x+2"> can be instantly recognized as an error because the XPath expression $x+2 can never return a node-set.
因此,例如, <xsl:for-eachselect="$x+2">可以立即识别成一个错误,因为XPath表达式 $x+2永远不会返回节点集。
Avoid error code as methods return values.
避免将错误代码作为方法的返回值。
Avoid error codes as method return values.
避免使用错误代码作为方法的返回值。
When I create the above class I get an error that tells me I need to specify a return type as per a normal method.
当我创建了上述类我得到一个错误告诉我需要指定返回类型为每一个正常的方法。
Exceptions offer several advantages over other methods of error notification, such as return codes.
与其他错误通知方法(如返回代码)相比,异常具有若干优点。
Exceptions offer several advantages over other methods of error notification, such as return codes.
与其他错误通知方法(如返回代码)相比,异常具有若干优点。
应用推荐