public class FacadeException extends RuntimeException
Note that the "major" facades have their own subclasses of this exception, which provide additional information that can be used to control the caller's subsequent action.
| Constructor and Description |
|---|
FacadeException(String message,
Throwable cause,
boolean isRetryable,
String functionName,
Object... args)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFunctionName()
Returns the function that throw this exception (included for completeness).
|
boolean |
isRetryable()
Returns an indication of whether the caller should retry the operation that
threw this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic FacadeException(String message, Throwable cause, boolean isRetryable, String functionName, Object... args)
message - A base message explaining what happened. The actual
exception message consists of this, prefixed by the
function name and arguments.cause - The underlying exception wrapped by this. May be null.isRetryable - Indicates whether the caller can retry the operation.functionName - The name of the function where this exception was thrown.args - Optional information about the function state (usually
the arguments that were passed to the function).public String getFunctionName()
public boolean isRetryable()
Copyright © 2023. All rights reserved.