CommandException

public abstract class CommandException extends RuntimeException implements MessageError

Abstract base for exceptions related to commands.

Inheritors

Constructors

Link copied to clipboard
protected void CommandException(String messageText, Command command, Error error)
Creates a new instance.

Properties

Link copied to clipboard
public final static String ATTR_COMMAND_TYPE_NAME
The name of the attribute of the command type reported in an error.
Link copied to clipboard
public final Command command

Inherited properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public Error asError()
Converts this instance into an io.spine.base.Error.
Link copied to clipboard
Converts this instance into a java.lang.Throwable.
Link copied to clipboard
public static Map<String, Value> commandTypeAttribute(Message commandMessage)
Returns a map with a command type attribute.
Link copied to clipboard
protected static Error createError(String format, Command command, CommandValidationError errorCode)
Link copied to clipboard
public Command getCommand()
Returns a related command.
Link copied to clipboard
protected static String messageFormat(String format, Command command)
Builds a formatted string for the passed format and a command.

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()