Class MemberUnreachableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.messaging.commandhandling.CommandDispatchException
io.axoniq.framework.springcloud.command.MemberUnreachableException
- All Implemented Interfaces:
Serializable
Reports that a command could not be delivered to the
Member it was routed to, or that the member's reply
could not be read back.
This is the failure that says something about the member's availability, as opposed to a failure the member itself reported: a member that answered is reachable, whatever the answer said. The connector removes a member from its consistent-hash ring on this exception and on no other, so that a command failing for a reason of its own -- a payload no member can read, for instance -- does not empty the ring one member at a time.
Raised for a member with no known endpoint, a connection that could not be established, a reply that could not be read, and a member that did not answer within the dispatcher's reply deadline.
- Since:
- 5.4.0
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMemberUnreachableException(String message) Constructs aMemberUnreachableExceptionwith the givenmessage.MemberUnreachableException(String message, Throwable cause) Constructs aMemberUnreachableExceptionwith 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
-
MemberUnreachableException
Constructs aMemberUnreachableExceptionwith the givenmessage.- Parameters:
message- a description of why the member could not be reached
-
MemberUnreachableException
Constructs aMemberUnreachableExceptionwith the givenmessageandcause.- Parameters:
message- a description of why the member could not be reachedcause- the failure that prevented the member from being reached
-