Class ApplicationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ntu.fdae.group1.bto.exceptions.ApplicationException
All Implemented Interfaces:
Serializable

public class ApplicationException extends Exception
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 Details

    • ApplicationException

      public ApplicationException(String message)
      Constructs a new ApplicationException with the specified detail message.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
    • ApplicationException

      public ApplicationException(String message, Throwable cause)
      Constructs a new ApplicationException with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.