ExternalCommandReceiverMethodError

An error thrown when one or more of the command accepting methods are marked external in the CommandHandlingClass.

Although technically it's possible for entities like commanders to declare their command substitution methods as external, there is no notion of "external" commands in the system, and, to avoid confusion, such declarations should be avoided.

Example of a faulty method:

@Command
public StartProject on(@External CreateProject command) { ... }

Constructors

Link copied to clipboard
public void ExternalCommandReceiverMethodError(CommandHandlingClass<? extends Object, ? extends Object> classWithViolation, Collection<? extends CommandAcceptingMethod<? extends Object, ? extends Object>> invalidMethods)
Creates a new exception for the command handler that violates the @Command semantic.

Inherited properties

Link copied to clipboard
Link copied to clipboard

Inherited functions

Link copied to clipboard
public final synchronized void addSuppressed(Throwable exception)
Link copied to clipboard
public synchronized Throwable fillInStackTrace()
Link copied to clipboard
public synchronized Throwable getCause()
Link copied to clipboard
Link copied to clipboard
public String getMessage()
Link copied to clipboard
Link copied to clipboard
public final synchronized Array<Throwable> getSuppressed()
Link copied to clipboard
public synchronized Throwable initCause(Throwable cause)
Link copied to clipboard
public void printStackTrace()
Link copied to clipboard
public void setStackTrace(Array<StackTraceElement> stackTrace)
Link copied to clipboard
public String toString()