Class InvalidSpell

All Implemented Interfaces:
Serializable

public class InvalidSpell extends RuntimeException
Thrown when a spell value from configuration cannot be parsed.
See Also:
  • Constructor Details

    • InvalidSpell

      public InvalidSpell(String message)
      Creates a new InvalidSpell with the provided message.
      Parameters:
      message - details about the invalid spell
  • Method Details

    • Throw

      public static org.bukkit.entity.Spellcaster.Spell Throw(String message)
      Convenience helper that always throws this exception. Declared return type enables fluent usage inside expressions.
      Parameters:
      message - details about the invalid spell
      Returns:
      never returns; always throws InvalidSpell
      Throws:
      InvalidSpell - always