Class InvalidRecipeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.mehboss.utils.InvalidRecipeException
- All Implemented Interfaces:
Serializable
Thrown when a recipe fails validation or contains invalid data.
This exception signals that a recipe cannot be processed due to issues such as:
- Missing required fields
- Invalid item definitions
- Malformed ingredient lists
- Unsupported recipe configuration
It extends RuntimeException, allowing it to be thrown without
requiring explicit handling or declaration.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidRecipeException(String message) Constructs a new InvalidRecipeException with a descriptive error message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidRecipeException
Constructs a new InvalidRecipeException with a descriptive error message.- Parameters:
message- A message explaining why the recipe is invalid.
-