Class SagaException

All Implemented Interfaces:
Serializable

public final class SagaException extends MiddlewareException
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 Details

    • SagaException

      public SagaException(RemoteError remoteError)
      Creates an exception from a safe remote error.
      Parameters:
      remoteError - stable redacted remote error
    • SagaException

      public SagaException(RemoteError remoteError, Throwable cause)
      Creates an exception from a safe remote error and cause.
      Parameters:
      remoteError - stable redacted remote error
      cause - underlying cause, whose message must not be used to expose sensitive payloads