public class CommandExecuteResult
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static CommandExecuteResult |
failed(CommandExecutor<?> executor,
FailedReason failedReason) |
static CommandExecuteResult |
failed(CommandExecutor<?> executor,
java.lang.Object error) |
static CommandExecuteResult |
failed(java.lang.Object error) |
@Nullable java.lang.Object |
getError() |
@Nullable CommandExecutor<?> |
getExecutor() |
@Nullable java.lang.Object |
getResult() |
@Nullable java.lang.Throwable |
getThrowable() |
boolean |
isFailed() |
boolean |
isSuccessful() |
boolean |
isThrown() |
static CommandExecuteResult |
success(CommandExecutor<?> executor,
java.lang.Object result) |
static CommandExecuteResult |
thrown(CommandExecutor<?> executor,
java.lang.Throwable exception) |
static CommandExecuteResult |
thrown(java.lang.Throwable exception) |
@Nullable public @Nullable java.lang.Object getResult()
@Nullable public @Nullable java.lang.Throwable getThrowable()
@Nullable public @Nullable java.lang.Object getError()
@Nullable public @Nullable CommandExecutor<?> getExecutor()
public boolean isSuccessful()
public boolean isFailed()
public boolean isThrown()
public static CommandExecuteResult success(CommandExecutor<?> executor, java.lang.Object result)
public static CommandExecuteResult thrown(java.lang.Throwable exception)
public static CommandExecuteResult thrown(CommandExecutor<?> executor, java.lang.Throwable exception)
public static CommandExecuteResult failed(CommandExecutor<?> executor, java.lang.Object error)
public static CommandExecuteResult failed(java.lang.Object error)
public static CommandExecuteResult failed(CommandExecutor<?> executor, FailedReason failedReason)