public class AxonServerCommandDispatchException extends CommandDispatchException
Constructor and Description |
---|
AxonServerCommandDispatchException(String errorCode,
io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
Initialize the exception with given
errorCode and errorMessage . |
AxonServerCommandDispatchException(String errorCode,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Returns the error code as reported by the server.
|
List<String> |
getExceptionDescriptions()
|
String |
getServer()
Returns the name of the server that reported the error.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public AxonServerCommandDispatchException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
errorCode
and errorMessage
.errorCode
- the code reported by the servererrorMessage
- the message describing the exception on the remote endpublic String getErrorCode()
public String getServer()
Copyright © 2010–2022. All rights reserved.