public class BusinessException
extends java.lang.Exception
Modifier and Type | Class and Description |
---|---|
static interface |
BusinessException.DELETE_ERROR_CODES |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
errorMessages
The message that are already localized
|
protected java.lang.String |
localizedKey
The message key used to localize the message
|
protected java.lang.String[] |
localizedParams
The parameters used to localize the messages
|
Constructor and Description |
---|
BusinessException() |
BusinessException(java.lang.String message) |
BusinessException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode() |
java.lang.String[] |
getErrorMessages() |
java.lang.String |
getLocalizedKey() |
java.lang.String[] |
getLocalizedParams() |
void |
setErrorCode(int errorCode) |
void |
setErrorMessages(java.lang.String[] errorMessages) |
void |
setLocalizedKey(java.lang.String localizedKey) |
void |
setLocalizedParams(java.lang.String[] localizedParams) |
protected java.lang.String localizedKey
protected java.lang.String[] localizedParams
protected java.lang.String[] errorMessages
public BusinessException()
public BusinessException(java.lang.String message)
public BusinessException(java.lang.String message, java.lang.Throwable cause)
public java.lang.String getLocalizedKey()
public void setLocalizedKey(java.lang.String localizedKey)
public java.lang.String[] getLocalizedParams()
public void setLocalizedParams(java.lang.String[] localizedParams)
public java.lang.String[] getErrorMessages()
public void setErrorMessages(java.lang.String[] errorMessages)
errorMessages
- the errorMessages to setpublic int getErrorCode()
public void setErrorCode(int errorCode)