SurfCommandUtil

Utility object for command-related operations and error handling in the Surf API. Provides methods to create and throw custom command exceptions with user-friendly error messages.

Functions

Link copied to clipboard

Creates a custom exception with the given message.

Link copied to clipboard

Throws a custom command exception using a provided CommandExceptionBuilder.

Link copied to clipboard
fun failWithMessage(message: ComponentLike)

Throws a custom command exception with the given message.