Class ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ntu.fdae.group1.bto.exceptions.ApplicationException
- All Implemented Interfaces:
Serializable
Exception thrown for errors related to BTO housing applications.
This exception is used to indicate problems that occur during application submission, processing, or status changes. It encapsulates specific application-related errors that may occur during the application lifecycle.
Common scenarios where this exception might be thrown include:- Invalid application data
- Ineligible applicant attempting to apply
- Invalid status transitions
- Application processing failures
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationException
(String message) Constructs a new ApplicationException with the specified detail message.ApplicationException
(String message, Throwable cause) Constructs a new ApplicationException with the specified detail message and 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
-
ApplicationException
Constructs a new ApplicationException with the specified detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method)
-
ApplicationException
Constructs a new ApplicationException with the specified detail message and cause.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method)cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). Anull
value is permitted, and indicates that the cause is nonexistent or unknown.
-