Class InvalidRecipeException

All Implemented Interfaces:
Serializable

public class InvalidRecipeException extends RuntimeException
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 Details

    • InvalidRecipeException

      public InvalidRecipeException(String message)
      Constructs a new InvalidRecipeException with a descriptive error message.
      Parameters:
      message - A message explaining why the recipe is invalid.