|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--uk.org.ogsadai.exception.DAIUncheckedException
Base class for OGSA-DAI unchecked exceptions.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private ErrorID |
mErrorID
|
private java.lang.Object[] |
mParameters
|
private DAIUniqueID |
mUniqueID
|
| Fields inherited from class java.lang.RuntimeException |
|
| Fields inherited from class java.lang.Throwable |
|
| Constructor Summary | |
protected |
DAIUncheckedException()
No-argument constructor used by sub-classes that need to perform work before the error ID and parameters are known. |
|
DAIUncheckedException(ErrorID errorID)
Constructs an exception corresponding to the given error ID. |
|
DAIUncheckedException(ErrorID errorID,
java.lang.Object[] parameters)
Constructs an exception corresponding the given error ID and parameters. |
| Method Summary | |
ErrorID |
getErrorID()
Gets the error ID. |
DAIUniqueID |
getExceptionID()
Gets the unique ID associated with this 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. |
boolean |
hasChild()
Gets whether there is a child exception. |
protected void |
setErrorID(ErrorID errorID)
Sets the error ID. |
protected void |
setParameters(java.lang.Object[] parameters)
Sets the error parameters. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private ErrorID mErrorID
private java.lang.Object[] mParameters
private DAIUniqueID mUniqueID
| Constructor Detail |
protected DAIUncheckedException()
public DAIUncheckedException(ErrorID errorID)
errorID - Error ID identifying the error type.
public DAIUncheckedException(ErrorID errorID,
java.lang.Object[] parameters)
errorID - Error ID identifying the error type.parameters - Parameters associated with the error.| Method Detail |
public ErrorID getErrorID()
getErrorID in interface DAIExceptionInformationpublic java.lang.Object[] getParameters()
getParameters in interface DAIExceptionInformationDAIExceptionInformation.getParameters()public DAIUniqueID getExceptionID()
getExceptionID in interface DAIExceptionInformationDAIExceptionInformation.getExceptionID()public boolean hasChild()
hasChild in interface DAIExceptionInformationtrue if there is a child exception,
false otherwise.DAIExceptionInformation.hasChild()public java.lang.String getMessage()
getMessage in interface DAIExceptionInformationgetMessage in class java.lang.Throwable[uniqueID] key : param1 , param2 , ....Throwable.getMessage()public java.lang.String getLocalizedMessage()
getLocalizedMessage in interface DAIExceptionInformationgetLocalizedMessage in class java.lang.ThrowableThrowable.getLocalizedMessage()protected void setErrorID(ErrorID errorID)
errorID - Error ID identifying the error type.protected void setParameters(java.lang.Object[] parameters)
parameters - Parameters associated with the error.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||