Class FileNotFoundException
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.FileNotFoundException
- All Implemented Interfaces:
Serializable
This exception is thrown when a file with a given attribute and value cannot be found.
- Author:
- Brage Halvorsen Kvamme, Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileNotFoundException
(String attribute, Long value) This method constructs a new FileNotFoundException with the given attribute and value.FileNotFoundException
(String attribute, String value) This method constructs a new FileNotFoundException with the 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
-
FileNotFoundException
This method constructs a new FileNotFoundException with the given attribute and value.- Parameters:
attribute
- The attribute of the file that was not found, given as a Stringvalue
- The value of the attribute that was not found, given as a String
-
FileNotFoundException
This method constructs a new FileNotFoundException with the given attribute and value.- Parameters:
attribute
- The attribute of the file that was not found, given as a Stringvalue
- The value of the attribute that was not found, given as a Long object.
-