Package com.appiancorp.exceptions
Class LocalizedAppianRuntimeException.LocalizedAppianException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.appiancorp.suiteapi.common.exceptions.AppianException
com.appiancorp.exceptions.LocalizedAppianRuntimeException.LocalizedAppianException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- LocalizedAppianRuntimeException
public static class LocalizedAppianRuntimeException.LocalizedAppianException
extends AppianException
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe default implementation is equivalent to callingAppianException.getLocalizedMessage(Locale)
withLocale.US
as argument.getLocalizedMessage
(Locale locale) Returns this exception's message representation.getLocalizedTitle
(Locale locale) Returns this exception's title representation.The default implementation is equivalent to callingAppianException.getLocalizedMessage()
Methods inherited from class com.appiancorp.suiteapi.common.exceptions.AppianException
getErrorCode, getErrorCodeArguments, getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessageWithErrorCode, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
LocalizedAppianException
-
-
Method Details
-
getMessage
Description copied from class:AppianException
The default implementation is equivalent to callingAppianException.getLocalizedMessage()
- Overrides:
getMessage
in classAppianException
-
getLocalizedMessage
Description copied from class:AppianException
The default implementation is equivalent to callingAppianException.getLocalizedMessage(Locale)
withLocale.US
as argument. Please note that the error message filtering logic in https://issues.appian.com/browse/AN-274235 depends on this default behavior. Please contact Portals Foundations before changing this default behavior.- Overrides:
getLocalizedMessage
in classAppianException
-
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:
-
getLocalizedTitle
Description copied from class:AppianException
Returns this exception's title representation. This method should be used whenever the title 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:
getLocalizedTitle
in classAppianException
- Parameters:
locale
- title's locale- Returns:
- this exception's title representation
- See Also:
-