public class ResourceManagerCheckedException extends Exception
ResourceManager.
Instances store references to the resource that threw the exception and the
exception that was thrown. Multiple exceptions caught by the ResourceManager
are linked together with the next field.| Modifier and Type | Field and Description |
|---|---|
protected Exception |
ex
The exception that was thrown.
|
protected Exception |
next
The next exception in the chain if the ResourceManger caught more than
one exception.
|
protected Object |
resource
The resource that threw the exception.
|
| Constructor and Description |
|---|
ResourceManagerCheckedException(Object resource,
Exception ex) |
ResourceManagerCheckedException(Object resource,
Exception ex,
Exception next) |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException()
Returns the exception that was thrown.
|
Exception |
getNextException()
Returns the next excpetion in the chain, or null if there is no
such exception.
|
Object |
getResource()
Returns the resource that threw the exception.
|
void |
printStackTrace() |
void |
printStackTrace(PrintStream out) |
void |
printStackTrace(PrintWriter out) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringprotected Object resource
protected Exception ex
protected Exception next
public ResourceManagerCheckedException(Object resource, Exception ex)
public Object getResource()
public Exception getException()
public Exception getNextException()
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream out)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter out)
printStackTrace in class ThrowableCopyright © 2016 The American National Corpus. All rights reserved.