|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.exception.NonOGSADAIExceptionWrapper
This wrapper is designed to wrap non-OGSA-DAI exceptions in a format which allows their information - specifically their class name and exception message - to be presented in a form analogous to that used by OGSA-DAI exceptions.
This wrapper can be used when dumping exceptions into Response documents or building service faults for example.
Associated with error ID:
uk.org.ogsadai.NON_OGSA_DAI_COMPLIANT_ERROR.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static ErrorID |
ERROR_ID
ErrorID |
private java.lang.String |
mLocalizedMessage
Localized message |
private java.lang.String |
mMessage
Message |
private java.lang.Object[] |
mParameters
Parameters |
| Constructor Summary | |
NonOGSADAIExceptionWrapper(java.lang.Throwable exception)
Constructor. |
|
| Method Summary | |
ErrorID |
getErrorID()
Gets the error ID of this type of exception. |
DAIUniqueID |
getExceptionID()
Gets the unique ID associated with the server-side exception. |
java.lang.String |
getLocalizedMessage()
Gets a localized message describing the error. |
java.lang.String |
getMessage()
Gets a message describing the error. |
java.lang.Object[] |
getParameters()
Gets the parameters associated with the error - a one-element array containing the unique exception ID. |
boolean |
hasChild()
Gets whether there is a child exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final ErrorID ERROR_ID
private java.lang.Object[] mParameters
private java.lang.String mMessage
private java.lang.String mLocalizedMessage
| Constructor Detail |
public NonOGSADAIExceptionWrapper(java.lang.Throwable exception)
exception - Exception to be wrapped.| Method Detail |
public java.lang.String getLocalizedMessage()
DAIExceptionInformation
getLocalizedMessage in interface DAIExceptionInformationpublic java.lang.String getMessage()
DAIExceptionInformation
getMessage in interface DAIExceptionInformationpublic DAIUniqueID getExceptionID()
getExceptionID in interface DAIExceptionInformationnullpublic ErrorID getErrorID()
getErrorID in interface DAIExceptionInformationpublic java.lang.Object[] getParameters()
getParameters in interface DAIExceptionInformationpublic boolean hasChild()
hasChild in interface DAIExceptionInformationfalse always.DAIExceptionInformation.hasChild()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||