Class AxonServerCommandDispatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.messaging.commandhandling.CommandDispatchException
org.axonframework.axonserver.connector.command.AxonServerCommandDispatchException
- All Implemented Interfaces:
Serializable
Exception thrown if there is a problem dispatching a command on Axon Server.
- Since:
- 4.0
- Author:
- Milan Savic
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAxonServerCommandDispatchException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage) Initialize the exception with givenerrorCodeanderrorMessage.AxonServerCommandDispatchException(String errorCode, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturns the error code as reported by the server.Returns the name of the server that reported the error.toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AxonServerCommandDispatchException
public AxonServerCommandDispatchException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage) Initialize the exception with givenerrorCodeanderrorMessage.- Parameters:
errorCode- the code reported by the servererrorMessage- the message describing the exception on the remote end
-
AxonServerCommandDispatchException
-
-
Method Details
-
getErrorCode
Returns the error code as reported by the server.- Returns:
- the error code as reported by the server
-
getServer
Returns the name of the server that reported the error.- Returns:
- the name of the server that reported the error
-
getExceptionDescriptions
-
toString
-