In the next section, you will code your own exception handler to handle the SQLException.
在下一节中,您将对异常处理程序进行编码,以便处理SQLException异常。
As mentioned in the previous section, you can code your own exception handler to handle the SQLException.
正如上一节中提到的一样,您可以编写自己的异常处理程序来处理SQLException异常。
Lastly, I discussed the design and implement problem of the business layer and data exception handle.
最后阐述了业务层与数据层异常处理的设计及策略问题。
However, the study of exception handle, transaction and time constraint in workflow were limited, which restricted the application of the workflow technology.
目前,对于工作流异常处理、事务和时间约束等的研究仍然不够成熟,一定程度上限制了工作流技术的应用。
It provides functionality to handle common tasks such as input validation and exception handling.
它提供处理普通任务的功能,比如输入验证和异常处理。
These considerations are just part of an overall exception handling and error strategy that must describe how to handle all kinds of exceptional situations, not just timeouts.
这些考虑事项仅仅是整体异常处理和错误战略的一部分,此类战略必须详述如何处理所有类型的异常情况,而不仅仅是超时。
In a real-world application, additional exception handling would be needed to handle this sort of situation.
在现实的应用程序中,需要额外的异常处理来处理这类情况。
Handle each exception specifically.
专门处理每个异常。
When limits are exceeded the database will begin rejecting reads and writes and the developer must handle this programmatically through exception handling as suggested by Microsoft.
当超出限制的时候,数据库就会开始拒绝读写,根据微软的建议,开发者必须通过通过异常处理以编程的方式处理这种情况。
The following describes how to handle each kind of exception that may occur.
下面描述了如何处理每种可能发生的异常情况。
When determining what type of exception to throw, you should always first consider the tier that will handle the reported exception.
当决定抛出何种类型的异常时,您应该总是首先考虑将要处理所报告异常的层。
Methods in the DAO interface should throw checked exceptions only if the caller can reasonably be expected to handle the exception.
只有在可以合理地预期调用者可以处理异常时,DAO接口中的方法才应该抛出检查过的异常。
Exception handling is a programming language construct designed to handle the occurrence of some condition (exception) that changes the normal flow of execution.
异常处理是一种编程语言构造,旨在处理某些更改常规执行流的情况(异常)。
That's substantially longer than our previous revisions, but this is mostly due to the exception checking which must be done to handle remote directories that may be missing.
这个要比我们之前的版本长很多,但这主要是处理远程目录不存在的时候必须要做的异常检查造成的。
The handler attribute specifies the class which is asked to handle this exception when it occurs.
这个异常属性指明了当发生这个异常时被调用来处理这个异常的类。
If the caller won't be able to handle the exception in a meaningful way, consider throwing an unchecked (run-time) exception.
如果调用者不能以有意义的方式处理这个异常,那么考虑抛出一个未检查的(运行时)异常。
Exception handling is the basic requirement of every application to handle any unexpected behavior of the application.
异常处理是每个应用程序的基本要求,以便处理应用程序的任意意外行为。
For example, an administrative staff could handle an exception in a task (for example, invalid order, system failure).
例如,管理员可能处理任务中的异常(例如,无效的命令、系统崩溃)。
Thankfully, most other programming languages include exception handling, which can make it somewhat easier to handle error cases.
值得感激的是,大部分其他编程语言都包含有异常处理的功能,这可以某种程度上简化错误处理的过程。
What does that say? It says if in the code up here I get an exception of that sort, I'm going to go to this place to handle it.
这意味着如果在代码中,我得到一个这样的异常,我能到这里来处理它。
It is used to handle exceptions and to specify a view to render when an exception occurs.
它可以捕获异常,并且在异常发生时指定一个视图进行输出。
How do you handle the exception that is returned from a stored procedure?
如何处理存储过程返回的异常?
a mechanism to handle errorpage exception processing.
用于处理 errorpage异常处理的机制
Any arbitrary code can enter a When block to decide whether or not to handle an Exception.
任何的代码都可以添加When去决定是否要处理某个异常。
Submitted by Neal Gafter, this proposal includes catch blocks which handle multiple exception types and improved checking of re-thrown exceptions.
由NealGafter提交,这个提议包括处理多种异常的catch语句块和改进重新抛出的异常的检查。
You still need to handle this exception of course, but writing a catch block to handle a detected error is much simpler than writing code to detect all possible errors.
当然还需要处理这个异常,但编写一个catch块来处理检测到的错误比起编写代码来检测所有可能的错误来说要简单得多。
The SQLWarning class inherits from the SQLException class; however, a SQL warning is less severe than an SQL exception, so it's better to handle them separately.
sqlwarning类继承自sqlexception类;但是SQL警告不如SQL异常那么严重,所以更好的方法是分别处理它们。
They will not be prepared to handle an exception that unexpectedly bubbles up from compare .
它们没有准备好处理compare中意外出现的异常。
The exception to SERVER_ENCRYPT not being able to handle SERVER authentication is when connecting to DB2 UDB via the JCC driver which will behave as usual.
SERVER_ENCRYPT不能够处理SERVER验证的一个例外情况是在通过JCC驱动器连接到DB2UDB 时。 该 JCC 驱动器的行为与平常一样。
I don't handle exception cases here, because it's just example code, but the Ajax code you ship should handle requests that return errors.
这里没有处理异常情况,因为这仅仅是一个例子,不过发布的Ajax代码应该处理返回错误的请求。
应用推荐