Use TRY..CATCH construct or check the @@ERROR variable after executing a data manipulation statement (like INSERT/UPDATE/DELETE).
在执行数据操作语句(像INSERT/UPDATE/DELETE)之后,使用TRY..CATCH结构或者检查该@@ERROR变量
This algorithm builds an effective borer collapse value expressions to control the partial error based on the selection of error variable.
该算法通过对误差变量的选择,建立了有效的边“折叠价值”计算公式对简化进行局部误差控制。
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所示。
A fault must have a name and it can optionally contain a variable that holds information related to the error.
错误必须有一个名称,它可以包含与错误相关的信息的变量,但该变量不是必需的。
This variable contains the error string from the last failed SQL statement.
该变量包含最后一个失败的sql语句的错误字符串。
This variable contains the error code of the latest SQL statement executed.
该变量包含最近执行的一条 SQL语句的错误代码。
Hence, with no password entered, the function is passed an uninitialized variable and a script error results.
因此,若无密码键入,传递到该函数的是未初始化的变量和脚本错误结果。
SQLERROR of the last cursor is returned, and the error string of the latest failed SQL statement is stored into variable SQLERRSTR.
最后一个游标的SQLERROR被返回,而最后一个失败的sql语句的错误字符串将被存储到变量SQLERRSTR中。
You usually see this error when you assign a value returned from a function to a variable with a more specific type.
你通常会把函数返回值赋给拥有更特定类型变量的时候遇到这样的错误。
If the variable is not defined, the statement is flagged as a syntax error.
如果变量没有定义,则语句被标为有语法错误。
Also as the name says, implicitly typed local variable, you cannot use var for field declaration or constant variables, therefore following declarations will both produce a compiler error.
故名思意,“隐式类型局部变量”将无法用于域变量或常量的声明中,否则将导致编译错误。
Progname is a global char* variable to save the name by which the command was invoked, for display in error messages.
Progname是保存名称(命令就是通过该名称被调用)的全局char*变量,作为在错误消息中显示之用。
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变量的方式抛给指定的错误页面。
Errno.h is needed for the declaration of errno, the global system call error number variable (more on that below).
h是声明errno所需要的,errno是全局系统调用错误号变量(下面会有更多介绍)。
The function returns a specific value (or range of values) to indicate an error, and the global variable errno is set to indicate the cause of the problem.
函数返回特定值(或值范围)以指明错误,且设置全局变量errno以指明问题的起因。
If the variable is set, set — query returns a status code of 0, indicating that no error occurred; otherwise, it returns a 1.
如果已经设置了此变量,set——query返回状态码0,这表示没有出现错误;否则,返回1。
Unbound classpath variable error.
未绑定classpath变量错误。
If you set this variable, TCSH displays the exit status whenever a script or program returns a non-zero value, thereby indicating a potential error.
如果设置这个变量,那么当脚本或程序返回非零值时tcsh会显示退出状态,这会指出潜在的错误。
If a variable is used before it is initialized, a semantic error is generated, the variable is created with a value of zero, and a message is printed.
如果变量是在初始化之前使用的,那就会产生语义错误,使用值为0来创建这个变量,并打印一条消息。
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变量中。
To get @@error and @@rowcount at the same time, include both in same statement and store them in a local variable. SELECT @RC = @@ROWCOUNT, @ER = @@ERROR
为了在同一时间获得@@Error和@@Rowcount,我们应将二者包括在同一语句中并将它们存储在局部变量中。
Using the sys_nerr global variable and the strerror() function, you can easily whip up some code (see Listing 5) to print out all of the built-in error messages of the system.
通过使用 sys_nerr全局变量和strerror()函数,将可以很轻松地快速编写一些代码(请参见清单5)以打印出系统的所有内置错误消息。
The perror and strerror functions that pull standard error descriptions come from the global variable, sys_errlist.
引出标准错误描述的perror和strerror函数来自sys_errlist全局变量。
If any errors are thrown, the error text is saved in the variable named 'error' and can then be accessed.
如果抛出任何错误,错误文本将保存在名为“error”的变量中,该变量可以被访问。
Now we can access it (i.e., read it) but we can't update it because the variable is final; another compiler error!
现在run方法可以访问counter变量了(仅仅是读取而已),但却无法更新该变量,因为它是final的,这又导致了另一个编译错误!
If the value of the variable val is None, then the result of (not val) will be true, and the error message will be displayed.
如果变量val的值是None,那么(not val)的结果是true,就会显示错误消息。
This variable has many methods for log and trace including: debug, info, warn, error, and log.
此变量具有很多方法,可用来进行日志记录和跟踪,比如debug、info、warn、error和log。
If your test was not successful, check for an error in your catalog file or environment variable.
如果测试不成功,则在目录文件或环境变量中检查错误。
If C99 lifted "variable declaration at top of block" constraint, why doing so in a "for loop" showing error?
如果C99解除“变量声明块”的约束,为什么这样做在一个“循环”显示错误吗?
For example, a variable reference in the expression results in an error even though the element is positioned in a template where the variable is in scope. Some key differences are.
比方说,表达式中的变量引用将导致错误,即使元素确实位于变量有效的模板中。
应用推荐