public class AxonServerException extends AxonException
Constructor and Description |
---|
AxonServerException(String code,
ErrorMessage errorMessage)
Initializes the exception using the given
code and errorMessage . |
AxonServerException(String code,
String message)
Initializes the exception using the given
code and message . |
AxonServerException(String message,
String code,
String source,
List<String> details)
Initializes the exception using the given
message , code , source and details . |
Modifier and Type | Method and Description |
---|---|
String |
code() |
Collection<String> |
details() |
ErrorCode |
errorCode() |
String |
source() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AxonServerException(String code, ErrorMessage errorMessage)
code
and errorMessage
.code
- The code of the error received from the Axon ServererrorMessage
- The grpc error message describing the errorpublic AxonServerException(String code, String message)
code
and message
.code
- The code of the error received from the Axon Servermessage
- The message describing the exceptionpublic String code()
public String source()
public Collection<String> details()
public ErrorCode errorCode()
Copyright © 2010–2018. All rights reserved.