Class AxonServerException

All Implemented Interfaces:
Serializable

public class AxonServerException extends AxonException
Generic exception indicating an error related to AxonServer.
Since:
4.0
Author:
Sara Pellegrini
See Also:
  • Constructor Details

    • AxonServerException

      public AxonServerException(String code, io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
      Initializes the exception using the given code and errorMessage.
      Parameters:
      code - The code of the error received from the Axon Server
      errorMessage - The grpc error message describing the error
    • AxonServerException

      public AxonServerException(String code, String message)
      Initializes the exception using the given code and message.
      Parameters:
      code - The code of the error received from the Axon Server
      message - The message describing the exception
    • AxonServerException

      public AxonServerException(String message, String code, String source, List<String> details)
      Initializes the exception using the given message, code, source and details.
      Parameters:
      message - The message describing the exception
      code - The code of the error received from the Axon Server
      source - The location that originally reported the error
      details - A List of Strings, each describing a single "cause"
    • AxonServerException

      public AxonServerException(String code, String message, Throwable cause)
      Initializes the exception using the given message, code, and cause.
      Parameters:
      code - The code of the error received from the Axon Server
      message - The message describing the exception
      cause - The underlying cause of the exception
  • Method Details