Class AuthenticationFailedException

  • All Implemented Interfaces:
    Serializable

    public class AuthenticationFailedException
    extends Exception
    A custom exception class to represent that there has authentication has failed
    Author:
    swaroop_nath
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthenticationFailedException

        public AuthenticationFailedException()
        The default constructor
      • AuthenticationFailedException

        public AuthenticationFailedException​(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