|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.util.exception.ExceptionPackage
public class ExceptionPackage
This class can package up an exception in a non-object-serialized form to send to a remote system that might not have the exception class available for deserialization.
WrappedRemotingException,
Serialized Form| Constructor Summary | |
|---|---|
ExceptionPackage(Severity severity,
Throwable throwable)
Creates a new ExceptionPackage object. |
|
ExceptionPackage(Throwable throwable)
Constructor for ExceptionPackage that assumes the severity is Severity.Warning. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionPackage(Throwable throwable)
throws IllegalArgumentException
ExceptionPackage that assumes the severity is Severity.Warning.
throwable -
IllegalArgumentException - if throwable is null
public ExceptionPackage(Severity severity,
Throwable throwable)
throws IllegalArgumentException
ExceptionPackage object. If the severity is null, then
Severity.Warning is assumed.
severity - the importance of the exception (may be null)throwable -
IllegalArgumentException - if throwable is null| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||