我在我的代码错误地添加标签后。
如果机器运转不正常,就会出现错误代码。
In the event of the machine not operating correctly, an error code will appear.
在上面的代码中,我们在哪里报告错误呢?
这时,代码应该还没有任何错误。
您的代码现在应该没有错误了。
我们可能想要对产品代码执行错误校验。
We might want to perform error checking for production code.
这通常会伴随有一个错误代码。
这可能会在您的代码中产生很微妙的错误。
请记住我的话:弄个404错误代码出来一定是有缘由的。
Take my word for it: the 404 error code was created for a reason.
添加一些简单的代码可以让这个错误更加具体。
Some simple code additions can make this error a lot more specific.
这个返回代码通常表明发生了某些错误。
This return code usually indicates some kind of error has occurred.
然后输出错误代码和故障原因。
如果不使用异常,则必须返回错误代码。
简而言之,合理使用异常,切勿返回错误代码。
In brief, use exceptions properly and never return error codes.
第一个是错误代码。
除了设置错误代码以外,PDO还将发出一条传统的E_WARNING消息。
In addition to setting the error code, PDO will emit a traditional E_WARNING message.
函数调用成功时返回零,失败时返回非零的错误代码。
This call either returns zero on success or a non-zero error code on failure.
测试您的代码中的错误情况非常重要。
It is very important that you test error conditions in your code.
错误代码和消息被作为OUT参数返回给调用者。
The error code and message are returned to the caller as OUT parameters.
唯一错误的回答是手工编写代码—不使用任何库。
The only wrong answer is coding everything by hand-not using any library.
如果代码没有语法错误,它就可以运行了。
契约式设计是一种发现和修复代码中逻辑错误的工具。
Design by contract is a tool for finding and fixing logic bugs in code.
如果该代码包含任何错误输入,它在运行时肯定会失败。
The code can fail at run time if it includes even a simple typo.
产生错误代码时可恢复到一个旧版本的模式。
Restore an older version of the schema when we push out bad code.
这是我代码中的一个错误。
如果该代码的返回值错误,就会取消提交。
If the return value from the code is false, the submittion is cancelled.
那么运行此代码时我们将得到如下错误。
如果状态不是good,就返回错误代码。
If the status is not good, then return the appropriate error code.
如果状态不是good,就返回错误代码。
If the status is not good, then return the appropriate error code.
应用推荐