Class InvalidEntityType

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

public class InvalidEntityType extends RuntimeException
Thrown when an entity type string from configuration cannot be parsed.
See Also:
  • Constructor Details

    • InvalidEntityType

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

    • Throw

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