Interface CommandErrorException

All Superinterfaces:
CommandError, CommandResult

public interface CommandErrorException extends CommandError
An error result due to an exception being thrown.
Since:
1.0
Version:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the cause of the error.
    default String
    Retrieves the error message.
  • Method Details

    • cause

      @Pure Throwable cause()
      Retrieves the cause of the error.
      Returns:
      The cause.
    • message

      default String message()
      Retrieves the error message.
      Specified by:
      message in interface CommandError
      Returns:
      The error message.
      Implementation Requirements:
      The default behavior is to return the message provided by the exception.