Class PullRegistrationError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
io.superdurable.dex.PullRegistrationError
- All Implemented Interfaces:
Serializable
Identifies a permanent pull rejection leaving a queue without a registered stream.
Thrown by Worker.waitPullRegistered(java.time.Duration) before initial readiness,
or by Worker.start() when stopping on permanent rejection is enabled.
Permanent codes are InvalidArgument, ResourceExhausted, Unimplemented, PermissionDenied,
and Unauthenticated. The cause is the original transport error. See the wait method for a startup example.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPullRegistrationError(String queue, Throwable cause) Creates a rejection retaining its original transport cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PullRegistrationError
-
-
Method Details
-
getQueue
Returns the rejected queue name.- Returns:
- the Flow type or app Worker ID queue
-