Class StudentNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.markvarga21.studentmanager.exception.StudentNotFoundException
- All Implemented Interfaces:
Serializable
@ResponseStatus(NOT_FOUND)
@Generated
public class StudentNotFoundException
extends RuntimeException
A custom exception which is used when a student could not been found.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStudentNotFoundException
(String message, OperationType type) Custom constructor which contains a message and the operation type of the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StudentNotFoundException
Custom constructor which contains a message and the operation type of the exception.- Parameters:
message
- A custom message for alerting the lack of a user.type
- The type of the operation.
-