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 Details

    • StudentNotFoundException

      public StudentNotFoundException(String message, OperationType type)
      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.