Class EmailAlreadyRegistered

  • All Implemented Interfaces:
    Serializable

    public class EmailAlreadyRegistered
    extends Exception
    A custom exception to express the error that the email-id has already been used for registration
    Author:
    mayankkakad
    See Also:
    Serialized Form
    • Constructor Detail

      • EmailAlreadyRegistered

        public EmailAlreadyRegistered()
        The default constructor
      • EmailAlreadyRegistered

        public EmailAlreadyRegistered​(String message,
                                      org.springframework.http.HttpStatus status)
        The parametrized constructor
        Parameters:
        message - The error message
        status - The HTTP Status code representing the form of issue
    • Method Detail

      • getStatus

        public org.springframework.http.HttpStatus getStatus()
        A method to get the HTTP status which represents the type of error
        Returns:
        HTTP status code