public class SdmxException
extends java.lang.RuntimeException
Constructor and Description |
---|
SdmxException(ExceptionCode code)
Creates Exception from an error String and an Error code
|
SdmxException(SDMX_ERROR_CODE errorCode,
ExceptionCode code,
java.lang.Object... args)
Creates Exception from an error String and an Error code
|
SdmxException(java.lang.String errorMessage)
Creates Exception from an error String and an Error code
|
SdmxException(java.lang.String errorMessage,
SDMX_ERROR_CODE errorCode)
Creates Exception from an error String and an Error code
|
SdmxException(java.lang.Throwable th,
ExceptionCode code,
java.lang.Object... args) |
SdmxException(java.lang.Throwable th,
SDMX_ERROR_CODE errorCode,
ExceptionCode code,
java.lang.Object... args)
Creates Exception from an error String and an Error code
|
SdmxException(java.lang.Throwable th,
SDMX_ERROR_CODE errorCode,
java.lang.String message)
Creates Exception from an error String and an Error code
|
SdmxException(java.lang.Throwable th,
java.lang.String str)
Creates an exception from a Throwable, if the Throwable is a SdmxException - then the
error code wil be used, if it is not, then InternalServerError will be used
|
Modifier and Type | Method and Description |
---|---|
ExceptionCode |
getCode() |
java.lang.String |
getErrorType() |
java.lang.String |
getFullMessage() |
java.lang.String |
getFullMessage(java.lang.Throwable th,
java.lang.String code,
java.lang.Object[] args) |
java.lang.Integer |
getHttpRestErrorCode() |
java.lang.String |
getMessage() |
java.lang.String |
getMessage(java.util.Locale loc) |
java.lang.String |
getMessage(java.lang.Throwable th,
java.lang.String code,
java.lang.Object[] args) |
java.lang.String |
getMessage(java.lang.Throwable th,
java.lang.String code,
java.lang.Object[] args,
java.util.Locale loc) |
SDMX_ERROR_CODE |
getSdmxErrorCode() |
java.lang.String |
resolveMessage(java.lang.String code,
java.lang.Object[] args) |
java.lang.String |
resolveMessage(java.lang.String code,
java.lang.Object[] args,
java.util.Locale loc) |
static void |
setMessageResolver(MessageResolver messageResolver) |
public SdmxException(java.lang.String errorMessage)
str
- errorCode
- requiredpublic SdmxException(ExceptionCode code)
str
- errorCode
- requiredpublic SdmxException(java.lang.String errorMessage, SDMX_ERROR_CODE errorCode)
str
- errorCode
- requiredpublic SdmxException(java.lang.Throwable th, java.lang.String str)
th
- str
- public SdmxException(java.lang.Throwable th, SDMX_ERROR_CODE errorCode, java.lang.String message)
str
- errorCode
- requiredpublic SdmxException(java.lang.Throwable th, ExceptionCode code, java.lang.Object... args)
public SdmxException(SDMX_ERROR_CODE errorCode, ExceptionCode code, java.lang.Object... args)
str
- errorCode
- requiredpublic SdmxException(java.lang.Throwable th, SDMX_ERROR_CODE errorCode, ExceptionCode code, java.lang.Object... args)
str
- errorCode
- requiredpublic SDMX_ERROR_CODE getSdmxErrorCode()
public java.lang.Integer getHttpRestErrorCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getFullMessage()
public java.lang.String getMessage(java.util.Locale loc)
public ExceptionCode getCode()
public java.lang.String getMessage(java.lang.Throwable th, java.lang.String code, java.lang.Object[] args)
public java.lang.String getFullMessage(java.lang.Throwable th, java.lang.String code, java.lang.Object[] args)
public java.lang.String getMessage(java.lang.Throwable th, java.lang.String code, java.lang.Object[] args, java.util.Locale loc)
public java.lang.String resolveMessage(java.lang.String code, java.lang.Object[] args)
public java.lang.String resolveMessage(java.lang.String code, java.lang.Object[] args, java.util.Locale loc)
public java.lang.String getErrorType()
public static void setMessageResolver(MessageResolver messageResolver)