public class AxonServerException extends AxonException
Constructor and Description |
---|
AxonServerException(String code,
io.axoniq.axonserver.grpc.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 . |
AxonServerException(String code,
String message,
Throwable cause)
Initializes the exception using the given
message , code , and cause . |
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, io.axoniq.axonserver.grpc.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 AxonServerException(String message, String code, String source, List<String> details)
message
, code
, source
and details
.public AxonServerException(String code, String message, Throwable cause)
message
, code
, and cause
.message
- The message describing the exceptioncode
- The code of the error received from the Axon Servercause
- The underlying cause of the exceptionpublic String code()
public String source()
public Collection<String> details()
public ErrorCode errorCode()
Copyright © 2010–2024. All rights reserved.