Class InvalidDecimalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.appiancorp.suiteapi.common.exceptions.AppianException
com.appiancorp.suiteapi.common.exceptions.InvalidDecimalException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the error code associated with this exception.protected Object[]
Gets the arguments that must be used to render this exception's message representation.getLocalizedMessage
(Locale locale_) Returns this exception's message representation.void
setErrorCodeArguments
(Object[] errorCodeArguments_) Methods inherited from class com.appiancorp.suiteapi.common.exceptions.AppianException
getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
_errorCode
-
_errorCodeArguments
-
-
Constructor Details
-
InvalidDecimalException
-
InvalidDecimalException
-
-
Method Details
-
getErrorCode
Description copied from class:AppianException
Gets the error code associated with this exception. Subclasses should override this method to return specific error codes. The default implementation returns APNX-1-0000-000 (ErrorCode.GENERIC_ERROR).- Overrides:
getErrorCode
in classAppianException
- See Also:
-
setErrorCodeArguments
-
getErrorCodeArguments
Description copied from class:AppianException
Gets the arguments that must be used to render this exception's message representation. Subclasses should override this method to return specific arguments. The default implementation returns a length 1 array containing the message as returned by the parent class of AppianException. This method is only called whenAppianException.getErrorCodeArguments(Locale)
hasn't been overwritten.- Overrides:
getErrorCodeArguments
in classAppianException
- Returns:
- the arguments of the error code tied to this exception
- See Also:
-
getLocalizedMessage
Description copied from class:AppianException
Returns this exception's message representation. This method should be used whenever the message is to be displayed to the end user. The default representation does not include any error code information because this may be rendered in different ways across the application. If needed, the exception's error code can be retrieved fromAppianException.getErrorCode()
.- Overrides:
getLocalizedMessage
in classAppianException
- Parameters:
locale_
- message's locale- Returns:
- this exception's message representation
- See Also:
-