Package main.utils.exception
Class StudentStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
main.utils.exception.StudentStatusException
- All Implemented Interfaces:
Serializable
The
StudentStatusException class is a custom exception that is thrown when a student's status prevents them from
performing an action related to selecting a project for their FYP.
It extends the IllegalStateException class.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) StudentStatusThestatusinstance variable holds theStudentStatusof the student that caused the exception. -
Constructor Summary
ConstructorsConstructorDescriptionStudentStatusException(StudentStatus status) Creates a new instance of theStudentStatusExceptionclass with a custom error message based on the student's status. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
status
StudentStatus statusThestatusinstance variable holds theStudentStatusof the student that caused the exception.
-
-
Constructor Details
-
StudentStatusException
Creates a new instance of theStudentStatusExceptionclass with a custom error message based on the student's status.- Parameters:
status- TheStudentStatusof the student that caused the exception.
-