public final class ExceptionHandler
extends java.lang.Object
| Constructor and Description |
|---|
ExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getErrorCode(long hresult) |
static int |
getFacility(long hresult) |
static java.lang.String |
getResourceBundleName() |
static AOJException |
handleArcObjectException(java.lang.Throwable throwable)
Handles errors and exceptions.
|
static AOJException |
handleAutomationException(AutomationException ae)
Generic AutomationException handler.
|
public static final java.lang.String getResourceBundleName()
public static AOJException handleArcObjectException(java.lang.Throwable throwable)
throwable parameter is
one of AutomationException, UnsatisfiedLinkError, UnknownHostException or IOException
this method consumes the throwable and throws a corresponding RuntimeException instead
(AOJException).
If the throwable parameter is not one of
UnsatisfiedLinkError, UnknownHostException or IOException, this method
wraps the throwable in a RuntimeException and throws it.
Calling this method makes the next line of code unreachable because this
method always throws an unchecked exception.throwable - public static AOJException handleAutomationException(AutomationException ae)
ae - public static int getErrorCode(long hresult)
public static int getFacility(long hresult)