public class ApptrieveException
extends java.lang.Exception
Constructor and Description |
---|
ApptrieveException(ErrorMessage errorMesg)
Create using an ErrorMessage object.
|
ApptrieveException(java.util.List errorList)
Create using a list of ErrorMessage objects.
|
ApptrieveException(java.util.List mesgs,
java.util.List localizedMesgs)
Create using a list of error descriptions.
|
ApptrieveException(java.lang.String mesg)
Create using a simple string message.
|
ApptrieveException(java.lang.String mesg,
java.lang.String localizedMesg)
Create using an error description string.
|
Modifier and Type | Method and Description |
---|---|
void |
appendMessage(ErrorMessage mesg)
Append an error message to the list of errors in the exception.
|
void |
appendMessage(java.lang.String mesg)
Append an error message string to the list of error descriptions
in this exception.
|
void |
appendMessage(java.lang.String mesg,
java.lang.String localizedMesg)
Append an error message string to the list of error descriptions
in this exception.
|
ErrorMessage |
getErrorMessage()
Gets the first error message in the exception.
|
java.util.List |
getErrorMessageList()
Gets all error messages in the exception.
|
TerminalScreen |
getErrorScreen() |
java.lang.String |
getLocalizedMessage()
Gets the text of the first error in the exception in the default locale.
|
java.util.List |
getLocalizedMessageList()
Gets the text of all error messages in the exception in the default locale.
|
java.lang.String |
getMessage()
Gets the text of the first error in the exception.
|
java.util.List |
getMessageList()
Gets the text of all error messages in the exception.
|
void |
setErrorScreen(TerminalScreen ts) |
public ApptrieveException(ErrorMessage errorMesg)
errorMesg
- error messagepublic ApptrieveException(java.util.List errorList)
errorList
- a list of ErrorMessage objectspublic ApptrieveException(java.lang.String mesg)
mesg
- error textpublic ApptrieveException(java.lang.String mesg, java.lang.String localizedMesg)
mesg
- generic message stringlocalizedMesg
- localized message stringpublic ApptrieveException(java.util.List mesgs, java.util.List localizedMesgs)
mesgs
- list of generic message stringslocalizedMesgs
- list of localized message stringspublic void appendMessage(ErrorMessage mesg)
mesg
- error messagepublic void appendMessage(java.lang.String mesg)
mesg
- generic message stringpublic void appendMessage(java.lang.String mesg, java.lang.String localizedMesg)
mesg
- generic message stringlocalizedMesg
- localized message stringpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.util.List getMessageList()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.util.List getLocalizedMessageList()
public ErrorMessage getErrorMessage()
public java.util.List getErrorMessageList()
public void setErrorScreen(TerminalScreen ts)
public TerminalScreen getErrorScreen()