public enum ErrorCode extends Enum<ErrorCode>
Modifier and Type | Method and Description |
---|---|
AxonException |
convert(io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
Converts the
errorMessage to the relevant AxonException |
AxonException |
convert(io.axoniq.axonserver.grpc.ErrorMessage errorMessage,
Supplier<Object> details)
Converts the
errorMessage to the relevant AxonException |
AxonException |
convert(String source,
Throwable throwable)
Converts the
source and the throwable to the relevant AxonException |
AxonException |
convert(Throwable throwable)
Converts the
throwable to the relevant AxonException |
String |
errorCode() |
static ErrorCode |
getFromCode(String code) |
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode AUTHENTICATION_TOKEN_MISSING
public static final ErrorCode AUTHENTICATION_INVALID_TOKEN
public static final ErrorCode UNSUPPORTED_INSTRUCTION
public static final ErrorCode INSTRUCTION_ACK_ERROR
public static final ErrorCode INSTRUCTION_EXECUTION_ERROR
public static final ErrorCode INVALID_EVENT_SEQUENCE
public static final ErrorCode NO_EVENT_STORE_MASTER_AVAILABLE
public static final ErrorCode EVENT_PAYLOAD_TOO_LARGE
public static final ErrorCode CONNECTION_FAILED
public static final ErrorCode GRPC_MESSAGE_TOO_LARGE
public static final ErrorCode NO_HANDLER_FOR_COMMAND
public static final ErrorCode COMMAND_EXECUTION_ERROR
public static final ErrorCode COMMAND_DISPATCH_ERROR
public static final ErrorCode CONCURRENCY_EXCEPTION
public static final ErrorCode NO_HANDLER_FOR_QUERY
public static final ErrorCode QUERY_EXECUTION_ERROR
public static final ErrorCode QUERY_DISPATCH_ERROR
public static final ErrorCode DATAFILE_READ_ERROR
public static final ErrorCode INDEX_READ_ERROR
public static final ErrorCode DATAFILE_WRITE_ERROR
public static final ErrorCode INDEX_WRITE_ERROR
public static final ErrorCode DIRECTORY_CREATION_FAILED
public static final ErrorCode VALIDATION_FAILED
public static final ErrorCode TRANSACTION_ROLLED_BACK
public static final ErrorCode OTHER
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String errorCode()
public AxonException convert(io.axoniq.axonserver.grpc.ErrorMessage errorMessage, Supplier<Object> details)
errorMessage
to the relevant AxonExceptionerrorMessage
- the descriptor of the errordetails
- a supplier of (optional) application-specific details to be included in Exception, when
appropriatepublic AxonException convert(io.axoniq.axonserver.grpc.ErrorMessage errorMessage)
errorMessage
to the relevant AxonExceptionerrorMessage
- the descriptor of the errorpublic AxonException convert(Throwable throwable)
throwable
to the relevant AxonExceptionthrowable
- the descriptor of the errorpublic AxonException convert(String source, Throwable throwable)
source
and the throwable
to the relevant AxonExceptionsource
- The location that originally reported the errorthrowable
- the descriptor of the errorCopyright © 2010–2022. All rights reserved.