Class RetryableSmartServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.appiancorp.suiteapi.common.exceptions.AppianException
com.appiancorp.suiteapi.process.exceptions.SmartServiceException
com.appiancorp.suiteapi.process.exceptions.RetryableSmartServiceException
- All Implemented Interfaces:
Retryable
,Serializable
A subclass of SmartServiceException that indicates that the exception is transient and
the smart service can be safely retried.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The Builder inner class is used to create an instance of the SmartServiceException. -
Field Summary
Fields inherited from class com.appiancorp.suiteapi.process.exceptions.SmartServiceException
addCauseToAlertMessageArgs, addCauseToUserMessageArgs, alertMessageArgs, alertMessageKey, userMessageArgs, userMessageKey
-
Constructor Summary
ConstructorDescriptionRetryableSmartServiceException
(ErrorCode errorCode, Object... errorCodeArgs) Constructor to be used if the RetryableSmartServiceException has an error code associated with it.RetryableSmartServiceException
(ErrorCode errorCode, Throwable cause) Constructor to be used if the RetryableSmartServiceException has an error code associated with it and the root cause of the exception is to be included.RetryableSmartServiceException
(ErrorCode errorCode, Throwable cause, Object... errorCodeArgs) Constructor to be used if the RetryableSmartServiceException has an error code associated with it and the root cause of the exception is to be included.RetryableSmartServiceException
(Class<? extends AppianSmartService> smartServiceClass, Throwable cause, String key, Object... args) Construct a RetryableSmartServiceException from all of its constituent parts. -
Method Summary
Methods inherited from class com.appiancorp.suiteapi.process.exceptions.SmartServiceException
getAlertMessage, getAttendedUserMessage, getCauseMessage, getExceptionClassName, getMessageFromBundle, toString
Methods inherited from class com.appiancorp.suiteapi.common.exceptions.AppianException
getErrorCode, getErrorCodeArguments, getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
RetryableSmartServiceException
Constructor to be used if the RetryableSmartServiceException has an error code associated with it.- Parameters:
errorCode
- the error code associated with the exceptionerrorCodeArg
- the parameters to the error code message- See Also:
-
RetryableSmartServiceException
public RetryableSmartServiceException(ErrorCode errorCode, Throwable cause, Object... errorCodeArgs) Constructor to be used if the RetryableSmartServiceException has an error code associated with it and the root cause of the exception is to be included.- Parameters:
errorCode
- the error code associated with the exceptioncause
- the cause of the exceptionerrorCodeArg
- the parameters to the error code message- See Also:
-
RetryableSmartServiceException
Constructor to be used if the RetryableSmartServiceException has an error code associated with it and the root cause of the exception is to be included.- Parameters:
errorCode
- the error code associated with the exceptioncause
- the cause of the exception- See Also:
-
RetryableSmartServiceException
public RetryableSmartServiceException(Class<? extends AppianSmartService> smartServiceClass, Throwable cause, String key, Object... args) Construct a RetryableSmartServiceException from all of its constituent parts. It's recommended to use the Builder inner class instead of this constructor.- Parameters:
smartServiceClass
- the class that is throwing the exceptioncause
- the Throwable that was caught, causing the SmartServiceException to be thrownkey
- the key to the error message in the bundleargs
- the set of paramaters that are passed with the error message to include dynamic information in the message if the value of the error bundle contains templates.
-