Class ImageNotFoundException
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.ImageNotFoundException
- All Implemented Interfaces:
Serializable
An exception thrown when an image is not found.
- Author:
- Brage Halvorsen Kvamme, Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImageNotFoundException
(Long imageId) This method constructs an ImageNotFoundException with the specified image ID.ImageNotFoundException
(String imageName) This method constructs an ImageNotFoundException with the specified image name. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ImageNotFoundException
This method constructs an ImageNotFoundException with the specified image name.- Parameters:
imageName
- The name of the image that was not found, given as a String.
-
ImageNotFoundException
This method constructs an ImageNotFoundException with the specified image ID.- Parameters:
imageId
- The ID of the image that was not found, given as a Long object.
-