Class RecipeNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.NotFoundException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.RecipeNotFoundException
- All Implemented Interfaces:
Serializable
This exception is thrown when a Recipe is not found.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRecipeNotFoundException
(String attribute, Long value) This method constructs a new RecipeNotFoundException with a given attribute and value.RecipeNotFoundException
(String attribute, String value) This method constructs a new RecipeNotFoundException with a given attribute and value. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RecipeNotFoundException
This method constructs a new RecipeNotFoundException with a given attribute and value.- Parameters:
attribute
- The specific attribute of the recipe not found.value
- The value of the recipe not found.
-
RecipeNotFoundException
This method constructs a new RecipeNotFoundException with a given attribute and value.- Parameters:
attribute
- The specific attribute of the recipe not found.value
- The id of the value not found.
-