|
Novell exteNd Director 5.0 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.fw.util.EboExceptionHelper
This class contains helper methods that are related to exceptions and exception handling.
Constructor Summary | |
EboExceptionHelper()
|
Method Summary | |
static Throwable |
getOriginalThrowable(Throwable th)
Returns the original exception from a stack of parented exceptions |
static void |
handleException(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrowAsRuntime)
Handle an exception. |
static void |
handleException(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrowAsRuntime,
String message)
Handle an exception. |
static void |
handleException2(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrow)
Handle an exception. |
static void |
handleException2(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrow,
String message)
Handle an exception. |
static void |
handleException3(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrow)
Handle an exception. |
static void |
handleException3(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrow,
String message)
Handle an exception. |
static void |
handleException4(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrow)
Handle an exception. |
static void |
handleException4(Exception ex,
EbiLog log,
boolean printStackTrace,
boolean rethrow,
String message)
Handle an exception. |
static void |
handleThrowable(Throwable throwable,
EbiLog log,
boolean printStackTrace,
boolean rethrowAsRuntime)
Handle an Throwable object. |
static void |
handleThrowable2(Throwable throwable,
EbiLog log,
boolean printStackTrace,
boolean rethrowAsThrowable)
Handle an Throwable object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public EboExceptionHelper()
Method Detail |
public static void handleThrowable(Throwable throwable, EbiLog log, boolean printStackTrace, boolean rethrowAsRuntime)
throwable
- the Throwable to handlepublic static void handleThrowable2(Throwable throwable, EbiLog log, boolean printStackTrace, boolean rethrowAsThrowable) throws Throwable
throwable
- the Throwable to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrowAstHROWABLE
- if true, the passed in throwable will be rethrown
as itselfpublic static void handleException(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrowAsRuntime)
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrowAsRuntime
- if true, the passed in exception will get
wrapped into an EboRuntimeException and rethrown, unless it is already
a RuntimeException or subclass thereofpublic static void handleException2(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrow) throws EboUnrecoverableSystemException
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrow
- if true, rethrow the exceptionpublic static void handleException3(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrow) throws EboUnrecoverableSystemException, EboSecurityException
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrow
- if true, rethrow the exceptionpublic static void handleException4(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrow) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrow
- if true, rethrow the exceptionpublic static void handleException(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrowAsRuntime, String message)
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrowAsRuntime
- if true, the passed in exception will get
wrapped into an EboRuntimeException and rethrown, unless it is already
a RuntimeException or subclass thereofmessage
- an extra message to log, prior to the stack trace; this
message is used in the top-level RuntimeException which wraps the
passed-in Exceptionpublic static void handleException2(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrow, String message) throws EboUnrecoverableSystemException
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrow
- if true, rethrow the exceptionmessage
- an extra message to log, prior to the stack trace; this
message is used in the top-level EboUnrecoverableSystemException which
wraps the passed-in Exception, unless it already is an instance of
EboUnrecoverableSystemException or RuntimeExceptionpublic static void handleException3(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrow, String message) throws EboUnrecoverableSystemException, EboSecurityException
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrow
- if true, rethrow the exceptionmessage
- an extra message to log, prior to the stack trace; this
message is used in the top-level EboUnrecoverableSystemException which
wraps the passed-in Exception, unless it is already an instance of
EboUnrecoverableSystemException, EboSecurityException, or
RuntimeExceptionpublic static void handleException4(Exception ex, EbiLog log, boolean printStackTrace, boolean rethrow, String message) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
ex
- the exception to handlelog
- the log to log the exception to; if null is passed in, the
exception is not loggedprintStackTrace
- if true, print the exception stack trace onto
the consolerethrow
- if true, rethrow the exceptionmessage
- an extra message to log, prior to the stack trace; this
message is used in the top-level RuntimeException which wraps the
passed-in Exceptionpublic static Throwable getOriginalThrowable(Throwable th)
th
- the throwable to be interrogated
|
Novell exteNd Director 5.0 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |