|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.waveset.util.ExceptionWrapper
com.waveset.util.WavesetException
The base exception thrown by Waveset components.
Field Summary | |
static java.lang.String |
code_id
|
Constructor Summary | |
WavesetException()
Construct a ExceptionWrapper with no message or nested throwable. |
|
WavesetException(ErrorMessage msg)
Construct a new WavesetException with a detailed message supplied as a Message object. |
|
WavesetException(ErrorMessage msg,
java.lang.Throwable e)
Construct a new WavesetException that wraps an existing exception, and has its own detailed message supplied as a Message object |
|
WavesetException(java.util.List msgs)
Construct a new WavesetException with a list of messages. |
|
WavesetException(Message msg)
Deprecated. as of release 7.0, replaced by WavesetException(ErrorMessage) . |
|
WavesetException(Message msg,
java.lang.Throwable e)
Deprecated. as of release 7.0, replaced by WavesetException(ErrorMessage, Throwable) . |
|
WavesetException(java.lang.String message)
Deprecated. as of release 7.0, replaced by WavesetException(String, Severity) . |
|
WavesetException(java.lang.String message,
Severity severity)
Construct a new WavesetException with a detailed error message. |
|
WavesetException(java.lang.String message,
Severity severity,
java.lang.Throwable e)
Create a new WavesetException from an existing exception. |
|
WavesetException(java.lang.String message,
java.lang.Throwable e)
Deprecated. as of release 7.0, replaced by WavesetException(String, Severity, Throwable) . |
|
WavesetException(java.lang.Throwable e)
Construct a new WavesetException wrapping an existing exception. |
Method Summary | |
void |
addMessage(Message msg)
Add an additional message to the exception. |
void |
addMessage(Message msg,
int index)
Add an additional message to the exception. |
void |
breakpoint()
Called when an exception is constructed, and breakpoints are enabled. |
void |
checkBreakpoint()
Called when exceptions are constructred. |
static void |
enableBreakpoint(boolean b)
Enables or disables exception breakpoints. |
java.lang.String |
getLocalizedMessage()
Get the localized error message, overloaded from Throwable. |
java.lang.String |
getLocalizedMessage(java.util.Locale locale)
Get the localized error message, overloaded from Throwable. |
java.lang.String |
getMessage()
Get the default message, overloaded from Throwable. |
java.lang.String |
getMessage(boolean includeWrapped,
java.util.Locale locale)
Render the messages for this exception. |
void |
getMessage(java.lang.StringBuffer b,
boolean includeWrapped,
java.util.Locale locale)
Render the messages for this exception. |
java.lang.Object |
getMessageObject()
Get the default message. |
java.lang.Object |
getMessageObject(java.util.Locale locale)
|
java.lang.String |
getMessageOnly()
Get the default message, overloaded from Throwable. |
java.util.List |
getMessages()
Gets the list of message objects associated with this exception. |
Methods inherited from class com.waveset.util.ExceptionWrapper |
addException, clearExceptions, describeException, getAllMessages, getException, getException, getExceptionCount, hasException, printStackTrace, printStackTrace, printStackTrace, removeException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public WavesetException()
public WavesetException(Message msg)
WavesetException(ErrorMessage)
.
msg
- detail messagepublic WavesetException(ErrorMessage msg)
msg
- detail messagepublic WavesetException(java.util.List msgs)
public WavesetException(Message msg, java.lang.Throwable e)
WavesetException(ErrorMessage, Throwable)
.
msg
- detail messagepublic WavesetException(ErrorMessage msg, java.lang.Throwable e)
msg
- detail messagepublic WavesetException(java.lang.String message)
WavesetException(String, Severity)
.
public WavesetException(java.lang.String message, Severity severity)
public WavesetException(java.lang.Throwable e)
The existing exception will be embedded in the new one, and its message will become the default message for the WavesetException.
public WavesetException(java.lang.String message, java.lang.Throwable e)
WavesetException(String, Severity, Throwable)
.
The existing exception will be embedded in the new one, but the new exception will have its own message.
public WavesetException(java.lang.String message, Severity severity, java.lang.Throwable e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
Method Detail |
public void addMessage(Message msg)
public void addMessage(Message msg, int index)
public java.util.List getMessages()
public void getMessage(java.lang.StringBuffer b, boolean includeWrapped, java.util.Locale locale)
Call this if you need control.
public java.lang.String getMessage(boolean includeWrapped, java.util.Locale locale)
public java.lang.String getLocalizedMessage()
Should be deferred until a point where we know the locale of th end-user.
public java.lang.String getLocalizedMessage(java.util.Locale locale)
Should be deferred until a point where we know the locale of th end-user.
public java.lang.String getMessage()
getMessage
in class ExceptionWrapper
public java.lang.Object getMessageObject()
public java.lang.Object getMessageObject(java.util.Locale locale)
public java.lang.String getMessageOnly()
public static void enableBreakpoint(boolean b)
public void checkBreakpoint()
If breakpoints are enabled, call breakpoint(). This extra leve is so tests can disable exception breakpoints when they are doing something that is known to produce an exception, but you don't want to stop the debugger.
public void breakpoint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |