failWithMessage

fun failWithMessage(message: ComponentLike)

Throws a custom command exception with the given message.

Parameters

message

The message to include in the exception, as a ComponentLike.

Throws

Always throws the created exception.