Exception handling
This page explains how to use exception handlers, which allow you to catch and handle exceptions that occur during command execution, and modify the default behavior for each exception.
CommandExceptionHandler Interface
Overview
What is CommandExceptionHandler?
CommandExceptionHandler?Default Exception Handlers
How to Use
Example: Bukkit Platform
Step 1: Extend BukkitExceptionHandler
BukkitExceptionHandlerStep 2: Register Your Custom Handler
Last updated
Was this helpful?