Class AxonServerRemoteQueryHandlingException

All Implemented Interfaces:
Serializable

public class AxonServerRemoteQueryHandlingException extends RemoteHandlingException
An AxonServer Exception which is thrown on a Query Handling exception.

By default, a stack trace is not generated for this exception. However, the stack trace creation can be enforced explicitly via the constructor accepting the writableStackTrace parameter.

Since:
4.0
Author:
Marc Gathier
See Also:
  • Constructor Details

    • AxonServerRemoteQueryHandlingException

      public AxonServerRemoteQueryHandlingException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage message)
      Initialize a Query Handling exception from a remote source.
      Parameters:
      errorCode - a String defining the error code of this exception
      message - an ErrorMessage describing the exception
    • AxonServerRemoteQueryHandlingException

      public AxonServerRemoteQueryHandlingException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage message, boolean writableStackTrace)
      Initialize a Query Handling exception from a remote source.
      Parameters:
      errorCode - a String defining the error code of this exception
      message - an ErrorMessage describing the exception
      writableStackTrace - whether the stack trace should be generated (true) or not (false
  • Method Details

    • getErrorCode

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

      public String getServer()
      Return a String defining the location where the error originated.
      Returns:
      a String defining the location where the error originated
    • toString

      public String toString()
      Overrides:
      toString in class Throwable