Class SagaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.j7m.middleware.api.MiddlewareException
org.j7m.middleware.api.saga.SagaException
- All Implemented Interfaces:
Serializable
Saga-specific middleware exception.
The embedded remote error must contain stable saga error codes and redacted diagnostic details. Exceptions must not include command payload bytes, credentials, or private endpoint material.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaException(RemoteError remoteError) Creates an exception from a safe remote error.SagaException(RemoteError remoteError, Throwable cause) Creates an exception from a safe remote error and cause. -
Method Summary
Methods inherited from class MiddlewareException
code, dirtyTarget, of, remote, remoteError, retryableMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SagaException
Creates an exception from a safe remote error.- Parameters:
remoteError- stable redacted remote error
-
SagaException
Creates an exception from a safe remote error and cause.- Parameters:
remoteError- stable redacted remote errorcause- underlying cause, whose message must not be used to expose sensitive payloads
-