Class AxonServerQueryDispatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.axonserver.connector.query.AxonServerQueryDispatchException
All Implemented Interfaces:
Serializable

public class AxonServerQueryDispatchException extends AxonException
An AxonServer Exception which is thrown on a Query Dispatching exception.
Since:
4.0
Author:
Steven van Beelen
See Also:
  • Constructor Details

    • AxonServerQueryDispatchException

      public AxonServerQueryDispatchException(String code, io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
      Initializes an AxonServer Query Dispatch Exception using the given code and errorMessage.
      Parameters:
      code - a String specifying the error code received from the Axon Server
      errorMessage - the grpc ErrorMessage describing the error
    • AxonServerQueryDispatchException

      public AxonServerQueryDispatchException(String code, String message)
      Initializes an AxonServer Query Dispatch Exception using the given code and message.
      Parameters:
      code - a String specifying the error code received from the Axon Server
      message - a String describing the exception message
    • AxonServerQueryDispatchException

      public AxonServerQueryDispatchException(String message, String code, String source, List<String> details)
      Initializes an AxonServer Query Dispatch Exception using the given message, code, source and details .
      Parameters:
      message - a String describing the exception message
      code - a String specifying the error code received from the Axon Server
      source - a String defining the location that originally reported the error
      details - a List of Strings, each describing a single "cause"
  • Method Details

    • code

      public String code()
      Return a String defining the error code.
      Returns:
      a String defining the error code
    • source

      public String source()
      Return a String defining the source where the error originated.
      Returns:
      a String defining the source where the error originated
    • details

      public List<String> details()
      Return a List of Strings, each describing a single "cause".
      Returns:
      a List of Strings, each describing a single "cause"
    • errorCode

      public ErrorCode errorCode()
      Return an ErrorCode based on the code().
      Returns:
      an ErrorCode based on the code()