Class RetryableSmartServiceException

All Implemented Interfaces:
Retryable, Serializable

public class RetryableSmartServiceException extends SmartServiceException implements Retryable
A subclass of SmartServiceException that indicates that the exception is transient and the smart service can be safely retried.
See Also:
  • Constructor Details

    • RetryableSmartServiceException

      public RetryableSmartServiceException(ErrorCode errorCode, Object... errorCodeArgs)
      Constructor to be used if the RetryableSmartServiceException has an error code associated with it.
      Parameters:
      errorCode - the error code associated with the exception
      errorCodeArg - 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 exception
      cause - the cause of the exception
      errorCodeArg - the parameters to the error code message
      See Also:
    • RetryableSmartServiceException

      public 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.
      Parameters:
      errorCode - the error code associated with the exception
      cause - 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 exception
      cause - the Throwable that was caught, causing the SmartServiceException to be thrown
      key - the key to the error message in the bundle
      args - 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.