|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.reflect.InvocationTargetException
ariba.util.core.WrappedException
public class WrappedException
a generic exception subclass for all exceptions thrown. It wraps the the exception thrown by its subclasses and incorporates the exception in its getMessage method.
Field Summary | |
---|---|
static int |
SevError
Severity level for Error. |
static int |
SevFatal
Severity level for Fatal. |
static int |
SevWarning
Severity level for Warning. |
Constructor Summary | |
---|---|
WrappedException(java.lang.Exception anException)
Construct with an exception - will copy message from the exception and create it with severity Error. |
|
WrappedException(java.lang.String aMessage)
Constructor with message. |
|
WrappedException(java.lang.String aMessage,
java.lang.Exception anException)
Specifies a message and an exception to wrap |
|
WrappedException(java.lang.String aMessage,
int severity)
Constructor with message and severity |
|
WrappedException(java.lang.String aMessage,
int severity,
java.lang.Exception anException)
Specifies a message, a severity and an exception to wrap. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
return the passed in message |
int |
getSeverity()
Get the severity of the exception. |
java.lang.Exception |
getWrappedException()
Returns the wrapped exception |
void |
printStackTrace(java.io.PrintStream s)
Print the stack trace to the provided PrintStream |
void |
printStackTrace(java.io.PrintWriter s)
Print the stack trace to the provided PrintWriter |
Methods inherited from class java.lang.reflect.InvocationTargetException |
---|
getCause, getTargetException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SevWarning
public static final int SevError
public static final int SevFatal
Constructor Detail |
---|
public WrappedException(java.lang.String aMessage)
aMessage
- the error messagepublic WrappedException(java.lang.String aMessage, int severity)
aMessage
- the error messageseverity
- public WrappedException(java.lang.String aMessage, java.lang.Exception anException)
aMessage
- the error messageanException
- the embedded exceptionpublic WrappedException(java.lang.Exception anException)
anException
- the embedded exceptionpublic WrappedException(java.lang.String aMessage, int severity, java.lang.Exception anException)
aMessage
- the error messageseverity
- anException
- the embedded exceptionMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Exception getWrappedException()
public int getSeverity()
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- the output print writerpublic void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
s
- the ouput print stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |