Authentication Exceptions
The authentication framework
has two Exception classes:
An AuthenticationFailedException
is thrown if an error prevents the authentication (for example, the password is wrong).
A RequestFailedException
is thrown if a non-authentication error occurs (for example, the HTTP connection suddenly shuts down).