Class ApprovalTimeoutException

All Implemented Interfaces:
Serializable

public class ApprovalTimeoutException extends AgenorException
Thrown when no human decision is submitted before an ApprovalRequest expires.

This is an unchecked exception (extends AgenorException) consistent with the Agenor exception hierarchy. Callers may catch it explicitly to implement fallback or escalation logic.

Since:
0.13.0
See Also:
  • Constructor Details

    • ApprovalTimeoutException

      public ApprovalTimeoutException(String requestId, Instant expiresAt)
      Creates a new ApprovalTimeoutException from an expired request.
      Parameters:
      requestId - UUID of the timed-out request
      expiresAt - the expiry instant of the request
    • ApprovalTimeoutException

      public ApprovalTimeoutException(ApprovalRequest request)
      Creates a new ApprovalTimeoutException directly from the request record.
      Parameters:
      request - the expired approval request
  • Method Details

    • getRequestId

      public String getRequestId()
      Returns the UUID of the timed-out approval request.
    • getExpiresAt

      public Instant getExpiresAt()
      Returns the expiry instant of the timed-out approval request.