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
Modifier and TypeFieldDescription(package private) StudentStatus
Thestatus
instance variable holds theStudentStatus
of the student that caused the exception. -
Constructor Summary
ConstructorDescriptionStudentStatusException
(StudentStatus status) Creates a new instance of theStudentStatusException
class 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 statusThestatus
instance variable holds theStudentStatus
of the student that caused the exception.
-
-
Constructor Details
-
StudentStatusException
Creates a new instance of theStudentStatusException
class with a custom error message based on the student's status.- Parameters:
status
- TheStudentStatus
of the student that caused the exception.
-