|
|
Start of Tutorial > Start of Trail > Start of Lesson | Search |
[PENDING: consider putting some real coverage in here]When an error occurs within a Java method, the method can throw an exception to indicate to its caller that an error occurred and the type of error that occured. The calling method can use the
try,catch, andfinallystatements to catch and handle the exception. See Handling Errors with Exceptionsfor information about throwing and handling exceptions.
|
|
Start of Tutorial > Start of Trail > Start of Lesson | Search |