Class AllergenNotFoundException
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.AllergenNotFoundException
- All Implemented Interfaces:
Serializable
This exception is thrown when an allergen cannot be found.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAllergenNotFoundException
(String attribute, String value) This method constructs a new AllergenNotFoundException 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
-
AllergenNotFoundException
This method constructs a new AllergenNotFoundException with a given attribute and value.- Parameters:
attribute
- A specific attribute of the allergen that was not found.value
- The value of the allergen not found
-