Interface ErrorHandler<S>

Type Parameters:
S - the command sender type

public interface ErrorHandler<S>
Handler for exceptions thrown during command execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(S sender, Exception exception)
    Handles an exception thrown during command execution.
  • Method Details

    • handle

      void handle(S sender, Exception exception)
      Handles an exception thrown during command execution.
      Parameters:
      sender - the sender who executed the command
      exception - the exception that was thrown