public class ExceptionPackage extends Object implements Serializable
WrappedRemotingException,
Serialized Form| Constructor and Description |
|---|
ExceptionPackage(Severity severity,
Throwable throwable)
Creates a new
ExceptionPackage object. |
ExceptionPackage(Throwable throwable)
Constructor for
ExceptionPackage that assumes the severity is Severity.Warning. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllMessages()
Returns all the messages for this throwable and all of its causes in one long string.
|
ExceptionPackage |
getCause()
Returns the cause of this exception in the same non-object-serialized form.
|
String |
getExceptionName()
Returns the name of the actual exception being packaged.
|
String |
getMessage()
Returns the message associated with the exception.
|
Severity |
getSeverity()
Returns the severity of the exception, which marks how important or severe the problem is.
|
String |
getStackTraceString()
Returns the stack trace for this exception but not of its cause.
|
String |
toString()
Returns a string consisting of the exception's name, the severity and message of the exception.
|
public ExceptionPackage(Throwable throwable) throws IllegalArgumentException
ExceptionPackage that assumes the severity is Severity.Warning.throwable - IllegalArgumentException - if throwable is nullpublic ExceptionPackage(Severity severity, Throwable throwable) throws IllegalArgumentException
severity - the importance of the exception (may be null)throwable - IllegalArgumentException - if throwable is nullpublic String getExceptionName()
getClass().getName() value of the exception.public Severity getSeverity()
public String getMessage()
public ExceptionPackage getCause()
public String getStackTraceString()
public String getAllMessages()
public String toString()
toString in class ObjectObject.toString()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.