public static class RetryableSmartServiceException.Builder extends SmartServiceException.Builder
userMessage
, then
build
. See the example in the main class javadoc.Constructor and Description |
---|
Builder(java.lang.Class smartServiceClass,
java.lang.String smartServiceBundleName,
java.lang.Throwable cause)
Construct a
RetryableSmartServiceException.Builder using the class that is
throwing the exception and the cause of the exception. |
Builder(java.lang.Class smartServiceClass,
java.lang.Throwable cause)
Construct a
RetryableSmartServiceException.Builder using the class that is
throwing the exception and the cause of the exception. |
Modifier and Type | Method and Description |
---|---|
SmartServiceException |
build()
After setting the
userMessage , call build to create an instance of
the RetryableSmartServiceException with the message set. |
addCauseToAlertMessageArgs, addCauseToUserMessageArgs, alertMessage, errorCode, userMessage
public Builder(java.lang.Class smartServiceClass, java.lang.Throwable cause)
RetryableSmartServiceException.Builder
using the class that is
throwing the exception and the cause of the exception.smartServiceClass
- the class that is throwing the exceptioncause
- the Throwable that was caught, causing the SmartServiceException to be
thrownpublic Builder(java.lang.Class smartServiceClass, java.lang.String smartServiceBundleName, java.lang.Throwable cause)
RetryableSmartServiceException.Builder
using the class that is
throwing the exception and the cause of the exception.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
thrownpublic SmartServiceException build()
userMessage
, call build
to create an instance of
the RetryableSmartServiceException with the message set.build
in class SmartServiceException.Builder
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.