Package dev.agenor.core.hitl
Class ApprovalTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.agenor.core.exceptions.AgenorException
dev.agenor.core.hitl.ApprovalTimeoutException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionApprovalTimeoutException(ApprovalRequest request) Creates a newApprovalTimeoutExceptiondirectly from the request record.ApprovalTimeoutException(String requestId, Instant expiresAt) Creates a newApprovalTimeoutExceptionfrom an expired request. -
Method Summary
Modifier and TypeMethodDescriptionReturns the expiry instant of the timed-out approval request.Returns the UUID of the timed-out approval request.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApprovalTimeoutException
Creates a newApprovalTimeoutExceptionfrom an expired request.- Parameters:
requestId- UUID of the timed-out requestexpiresAt- the expiry instant of the request
-
ApprovalTimeoutException
Creates a newApprovalTimeoutExceptiondirectly from the request record.- Parameters:
request- the expired approval request
-
-
Method Details
-
getRequestId
Returns the UUID of the timed-out approval request. -
getExpiresAt
Returns the expiry instant of the timed-out approval request.
-