Class QueryDispatchException

All Implemented Interfaces:
Serializable

public class QueryDispatchException extends AxonException
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 Details

    • QueryDispatchException

      public QueryDispatchException(String message)
      Constructs a QueryDispatchException with the given message.
      Parameters:
      message - the description of what could not be reached
    • QueryDispatchException

      public QueryDispatchException(String message, Throwable cause)
      Constructs a QueryDispatchException with the given message and cause.
      Parameters:
      message - the description of what could not be reached
      cause - the failure encountered while reaching the member