public abstract class AbstractBusinessObjectDocumentException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANGE_STATUS_CODE_VALUE_FOR_ERROR
The constant found in the change status code which indicates an error.
|
static java.lang.String |
ERROR_COUNT
The error count message, used when the resource bundle isn't available.
|
static java.lang.String |
ERROR_COUNT_KEY
The error count message key.
|
static java.lang.String |
MESSAGEKEY_ERRORCODE_SEPARATOR
The separator for message key and error code
|
Constructor and Description |
---|
AbstractBusinessObjectDocumentException(ChangeStatusType aChangeStatus,
VerbType verb,
java.util.List nouns)
Creates an instance of the business object document exception.
|
AbstractBusinessObjectDocumentException(java.util.List clientErrors)
Creates an instance of the business object document exception.
|
Modifier and Type | Method and Description |
---|---|
void |
addClientError(ClientError clientError)
This method adds a client error to the existing client errors that are
part of the exception.
|
ChangeStatusType |
getChangeStatus()
Returns the change status information associated with the exception.
|
java.util.List |
getClientErrors()
This method returns the list of client errors associated with the
exception.
|
java.lang.String |
getLocalizedMessage()
Get the localized exception message.
|
java.lang.String |
getMessage()
Get the exception message.
|
VerbType |
getVerb()
Returns the verb in the response document.
|
public static final java.lang.String ERROR_COUNT_KEY
public static final java.lang.String ERROR_COUNT
public static final java.lang.String MESSAGEKEY_ERRORCODE_SEPARATOR
public static final java.lang.String CHANGE_STATUS_CODE_VALUE_FOR_ERROR
public AbstractBusinessObjectDocumentException(ChangeStatusType aChangeStatus, VerbType verb, java.util.List nouns)
aChangeStatus
- The change status object that contains the exception
information.verb
- The verb of the response.nouns
- The nouns associated with the response which may indicate more
information about the exception.public AbstractBusinessObjectDocumentException(java.util.List clientErrors)
clientErrors
- The client errors to associate with the exception. These
client error represent client side parameter validation that
cause the exception.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public void addClientError(ClientError clientError)
clientError
- The client error to add to the exception.public java.util.List getClientErrors()
public ChangeStatusType getChangeStatus()
public VerbType getVerb()