Class RetryableSmartServiceException.Builder
java.lang.Object
com.appiancorp.suiteapi.process.exceptions.SmartServiceException.Builder
com.appiancorp.suiteapi.process.exceptions.RetryableSmartServiceException.Builder
- Enclosing class:
- RetryableSmartServiceException
The Builder inner class is used to create an instance of the SmartServiceException.
Pass the class that is throwing the SmartServiceException and the Throwable that
caused the exception to the constructor, then set the
userMessage
, then
build
. See the example in the main class javadoc.-
Constructor Summary
ConstructorDescriptionConstruct aRetryableSmartServiceException.Builder
using the class that is throwing the exception and the cause of the exception.Construct aRetryableSmartServiceException.Builder
using the class that is throwing the exception and the cause of the exception. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
After setting theuserMessage
, callbuild
to create an instance of the RetryableSmartServiceException with the message set.Methods inherited from class com.appiancorp.suiteapi.process.exceptions.SmartServiceException.Builder
addCauseToAlertMessageArgs, addCauseToUserMessageArgs, alertMessage, errorCode, userMessage
-
Constructor Details
-
Builder
Construct aRetryableSmartServiceException.Builder
using the class that is throwing the exception and the cause of the exception.- Parameters:
smartServiceClass
- the class that is throwing the exceptioncause
- the Throwable that was caught, causing the SmartServiceException to be thrown
-
Builder
Construct aRetryableSmartServiceException.Builder
using the class that is throwing the exception and the cause of the exception.- Parameters:
smartServiceClass
- the class that is throwing the exceptionsmartServiceBundleName
- the bundle name used to locate the i18n properties filecause
- the Throwable that was caught, causing the SmartServiceException to be thrown
-
-
Method Details
-
build
After setting theuserMessage
, callbuild
to create an instance of the RetryableSmartServiceException with the message set.- Overrides:
build
in classSmartServiceException.Builder
- Returns:
- the RetryableSmartServiceException with everything set
-