|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.oclc.da.gdfr.registryprototype.exceptions.RegistryException
public class RegistryException
| Constructor Summary | |
|---|---|
RegistryException()
Construct a new exception with no message. |
|
RegistryException(int code,
java.lang.String[] args)
Construct a new exception. |
|
| Method Summary | |
|---|---|
void |
addMessage(int code,
java.lang.String[] args)
Add an additional message to the messages queue. |
int |
getErrorCode()
Return the exception type code. |
java.lang.String |
getMessage()
Return the exception messages as one string, each message separated by new-line and 2 tabs. |
java.lang.String[] |
getMessages()
Return all the messages associated with this exception in an array. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegistryException()
RegistryExceptionCodes.MULTIPLE.
public RegistryException(int code,
java.lang.String[] args)
code must be
declared in RegistryExceptionCodes.
code - A code identifying the type of exception. I must match
one of the values in the list compiled by
RegistryExceptionCodes.args - The arguments for the message associated to code
in RegistryExceptionCodes.
Additional lines can be added to the message
by calling addMessage.| Method Detail |
|---|
public void addMessage(int code,
java.lang.String[] args)
RegistryExceptionCodes.MULTIPLE.
code - A code identifying the type of exception. I must match
one of the values in the list compiled by
RegistryExceptionCodes.args - The arguments for the message associated to code
in RegistryExceptionCodes.public int getErrorCode()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String[] getMessages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||