Class InvalidDamageCause

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
valorless.rarespawns.exceptions.InvalidDamageCause
All Implemented Interfaces:
Serializable

public class InvalidDamageCause extends RuntimeException
Thrown when a damage cause value from configuration is invalid or unsupported.
See Also:
  • Constructor Details

    • InvalidDamageCause

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

    • Throw

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