Invalid Command Exception
The exception for reporting invalid commands.
A command is invalid if it's supported (there's a handler for the command), but its attributes are not populated according to framework conventions or validation constraints.
Inherited properties
Functions
Link copied to clipboard
Creates an exception for the command which specifies a tenant in a single-tenant context.
Link copied to clipboard
Creates an exception for a command with missing
tenant_id
attribute in the CommandContext
which is required in a multitenant application.Link copied to clipboard
public static InvalidCommandException onConstraintViolations(Command command, Iterable<ConstraintViolation> violations)
Creates an exception instance for a command message, which has fields that violate validation constraint(s).
Link copied to clipboard
Creates an error for a command with missing
tenant_id
attribute in the CommandContext
which is required in a multitenant application.Inherited functions
Link copied to clipboard
Link copied to clipboard
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
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
Link copied to clipboard
Returns a related command.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Builds a formatted string for the passed format and a command.
Link copied to clipboard
Link copied to clipboard