Package io.simplesource.api
Enum CommandError.Reason
- java.lang.Object
-
- java.lang.Enum<CommandError.Reason>
-
- io.simplesource.api.CommandError.Reason
-
- All Implemented Interfaces:
Serializable,Comparable<CommandError.Reason>,java.lang.constant.Constable
- Enclosing class:
- CommandError
public static enum CommandError.Reason extends Enum<CommandError.Reason>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AggregateNotFoundCommandHandlerFailedCommandPublishErrorInternalErrorInvalidCommandInvalidReadSequenceRemoteLookupFailedTimeoutUnexpectedErrorCode
-
Method Summary
Modifier and Type Method Description static CommandError.ReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static CommandError.Reason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
InvalidCommand
public static final CommandError.Reason InvalidCommand
-
InvalidReadSequence
public static final CommandError.Reason InvalidReadSequence
-
CommandHandlerFailed
public static final CommandError.Reason CommandHandlerFailed
-
AggregateNotFound
public static final CommandError.Reason AggregateNotFound
-
Timeout
public static final CommandError.Reason Timeout
-
RemoteLookupFailed
public static final CommandError.Reason RemoteLookupFailed
-
CommandPublishError
public static final CommandError.Reason CommandPublishError
-
InternalError
public static final CommandError.Reason InternalError
-
UnexpectedErrorCode
public static final CommandError.Reason UnexpectedErrorCode
-
-
Method Detail
-
values
public static CommandError.Reason[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandError.Reason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-