Class InvalidBarStyle

All Implemented Interfaces:
Serializable

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

    • InvalidBarStyle

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

    • Throw

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