Class UserNotFoundException
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.UserNotFoundException
- All Implemented Interfaces:
Serializable
An exception that indicates that a user was not found. It extends the NotFoundException class,
which extends RuntimeException, so it's a RuntimeException.
- Author:
- Brage Halvorsen Kvamme, Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a UserNotFoundException with the specified id as the cause.UserNotFoundException
(String value) This method constructs a UserNotFoundException with the specified value as the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UserNotFoundException
This method constructs a UserNotFoundException with the specified value as the cause.- Parameters:
value
- The value that caused the exception to be thrown, given as a String.
-
UserNotFoundException
This method constructs a UserNotFoundException with the specified id as the cause.- Parameters:
id
- The id that caused the exception to be thrown, given as a Long.
-