Class InvalidBarColor

All Implemented Interfaces:
Serializable

public class InvalidBarColor extends RuntimeException
Thrown when a boss bar color parsed from configuration is invalid or unsupported. Use the static Throw helper to standardize error creation in parsers.
See Also:
  • Constructor Details

    • InvalidBarColor

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

    • Throw

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