Class QueryDispatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
io.axoniq.framework.springcloud.query.QueryDispatchException
- All Implemented Interfaces:
Serializable
Raised when a query could not be sent to a member, or its responses could not be read from one.
Distinct from the failure of a handler that did run, which arrives as a reported error on the response stream. The connector acts on that distinction: a member that could not be reached is taken out of the routing ring, while a member whose handler rejected a query is left where it is.
- Since:
- 5.4.0
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueryDispatchException(String message) Constructs aQueryDispatchExceptionwith the givenmessage.QueryDispatchException(String message, Throwable cause) Constructs aQueryDispatchExceptionwith the givenmessageandcause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueryDispatchException
Constructs aQueryDispatchExceptionwith the givenmessage.- Parameters:
message- the description of what could not be reached
-
QueryDispatchException
Constructs aQueryDispatchExceptionwith the givenmessageandcause.- Parameters:
message- the description of what could not be reachedcause- the failure encountered while reaching the member
-