Class AxonServerCommandDispatchException

All Implemented Interfaces:
Serializable

public class AxonServerCommandDispatchException extends CommandDispatchException
Exception thrown if there is a problem dispatching a command on Axon Server.
Since:
4.0
Author:
Milan Savic
See Also:
  • Constructor Details

    • AxonServerCommandDispatchException

      public AxonServerCommandDispatchException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
      Initialize the exception with given errorCode and errorMessage.
      Parameters:
      errorCode - the code reported by the server
      errorMessage - the message describing the exception on the remote end
    • AxonServerCommandDispatchException

      public AxonServerCommandDispatchException(String errorCode, String message, Throwable cause)
  • Method Details

    • getErrorCode

      public String getErrorCode()
      Returns the error code as reported by the server.
      Returns:
      the error code as reported by the server
    • getServer

      public String getServer()
      Returns the name of the server that reported the error.
      Returns:
      the name of the server that reported the error
    • getExceptionDescriptions

      public List<String> getExceptionDescriptions()
      Returns a List of Strings describing the remote exception.
      Returns:
      a List of Strings describing the remote exception
    • toString

      public String toString()
      Overrides:
      toString in class Throwable