Class AxonServerRemoteCommandHandlingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.messaging.core.RemoteHandlingException
org.axonframework.axonserver.connector.command.AxonServerRemoteCommandHandlingException
- All Implemented Interfaces:
Serializable
Exception indicating a problem that was reported by the remote end of a connection.
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 Summary
ConstructorsConstructorDescriptionAxonServerRemoteCommandHandlingException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage) Initialize the exception with givenerrorCodeanderrorMessage.AxonServerRemoteCommandHandlingException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage, boolean writableStackTrace) Initialize the exception with givenerrorCode,errorMessageandwritableStackTrace. -
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 org.axonframework.messaging.core.RemoteHandlingException
getExceptionDescriptionsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AxonServerRemoteCommandHandlingException
public AxonServerRemoteCommandHandlingException(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
-
AxonServerRemoteCommandHandlingException
public AxonServerRemoteCommandHandlingException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage, boolean writableStackTrace) Initialize the exception with givenerrorCode,errorMessageandwritableStackTrace.- Parameters:
errorCode- the code reported by the servererrorMessage- the message describing the exception on the remote endwritableStackTrace- whether the stack trace should be generated (true) or not (false)
-
-
Method Details