public class CommandError extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CommandError.Reason |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getMessage() |
The error message accessor
|
CommandError.Reason |
getReason() |
The reason value accessor.
|
static CommandError |
of(CommandError.Reason reason,
String msg) |
Construct a
CommandError from a Throwable. |
static CommandError |
of(CommandError.Reason reason,
Throwable throwable) |
Construct a
CommandError from a Throwable. |
public static CommandError of(CommandError.Reason reason, Throwable throwable)
CommandError from a Throwable.reason - the reason valuethrowable - for more contextCommandErrorpublic static CommandError of(CommandError.Reason reason, String msg)
CommandError from a Throwable.reason - the reason valuemsg - for more contextCommandErrorpublic CommandError.Reason getReason()
public String getMessage()
Copyright © 2019. All rights reserved.