| Package | Description |
|---|---|
| io.simplesource.api |
| Modifier and Type | Method and Description |
|---|---|
CommandError.Reason |
CommandError.getReason()
The reason value acaessor
|
static CommandError.Reason |
CommandError.Reason.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandError.Reason[] |
CommandError.Reason.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static CommandError |
CommandError.of(CommandError.Reason reason,
String msg)
Construct a
CommandError from a Throwable |
static CommandError |
CommandError.of(CommandError.Reason reason,
Throwable throwable)
Construct a
CommandError from a Throwable |
| Modifier and Type | Method and Description |
|---|---|
abstract <A> A |
CommandError.fold(java.util.function.BiFunction<CommandError.Reason,String,A> str,
java.util.function.BiFunction<CommandError.Reason,Throwable,A> ex)
Access the reason value and either the string or the throwable context and return whatever you like.
|
abstract <A> A |
CommandError.fold(java.util.function.BiFunction<CommandError.Reason,String,A> str,
java.util.function.BiFunction<CommandError.Reason,Throwable,A> ex)
Access the reason value and either the string or the throwable context and return whatever you like.
|
Copyright © 2018. All rights reserved.