public class AxonServerRemoteCommandHandlingException extends RemoteHandlingException
writableStackTrace parameter.| Constructor and Description |
|---|
AxonServerRemoteCommandHandlingException(String errorCode,
io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
Initialize the exception with given
errorCode and errorMessage. |
AxonServerRemoteCommandHandlingException(String errorCode,
io.axoniq.axonserver.grpc.ErrorMessage errorMessage,
boolean writableStackTrace)
Initialize the exception with given
errorCode, errorMessage and writableStackTrace. |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Returns the error code as reported by the server.
|
String |
getOriginServer()
Returns the name of the server that reported the error.
|
String |
toString() |
getExceptionDescriptionsaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic AxonServerRemoteCommandHandlingException(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 AxonServerRemoteCommandHandlingException(String errorCode, io.axoniq.axonserver.grpc.ErrorMessage errorMessage, boolean writableStackTrace)
errorCode, errorMessage and writableStackTrace.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)public String getOriginServer()
public String getErrorCode()
Copyright © 2010–2023. All rights reserved.