|
|||||||||
| 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(Exception anException)
Construct with an exception - will copy message from the exception and create it with severity Error. |
|
WrappedException(String aMessage)
Constructor with message. |
|
WrappedException(String aMessage,
Exception anException)
Specifies a message and an exception to wrap |
|
WrappedException(String aMessage,
int severity)
Constructor with message and severity |
|
WrappedException(String aMessage,
int severity,
Exception anException)
Specifies a message, a severity and an exception to wrap. |
|
| Method Summary | |
|---|---|
String |
getMessage()
return the passed in message |
int |
getSeverity()
Get the severity of the exception. |
Exception |
getWrappedException()
Returns the wrapped exception |
void |
printStackTrace(PrintStream s)
Print the stack trace to the provided PrintStream |
void |
printStackTrace(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(String aMessage)
aMessage - the error message
public WrappedException(String aMessage,
int severity)
aMessage - the error messageseverity -
public WrappedException(String aMessage,
Exception anException)
aMessage - the error messageanException - the embedded exceptionpublic WrappedException(Exception anException)
anException - the embedded exception
public WrappedException(String aMessage,
int severity,
Exception anException)
aMessage - the error messageseverity - anException - the embedded exception| Method Detail |
|---|
public String getMessage()
getMessage in class Throwablepublic Exception getWrappedException()
public int getSeverity()
public void printStackTrace(PrintWriter s)
printStackTrace in class Throwables - the output print writerpublic void printStackTrace(PrintStream s)
printStackTrace in class Throwables - the ouput print stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||