Class RegistrationException

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

public class RegistrationException extends Exception
Custom exception class for handling registration-related errors in the BTO system.

This exception is thrown when there are issues during user registration processes, such as validation failures, duplicate registrations, or system errors that prevent successful registration.

See Also:
  • Constructor Details

    • RegistrationException

      public RegistrationException(String message)
      Constructs a new registration exception with the specified detail message.
      Parameters:
      message - the detail message describing the exception
    • RegistrationException

      public RegistrationException(String message, Throwable cause)
      Constructs a new registration exception with the specified detail message and cause.
      Parameters:
      message - the detail message describing the exception
      cause - the underlying cause of the exception