Skip to content

Commit

Permalink
Merge pull request #146 from scop/login-error-credentials-base-exc
Browse files Browse the repository at this point in the history
Add base login error exception caused by permanently invalid credentials
  • Loading branch information
Salamek authored Sep 28, 2022
2 parents d3a5ce6 + 6c2e075 commit 398ce44
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions huawei_lte_api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,23 @@ class ResponseErrorWrongSessionToken(ResponseErrorException):
pass


class LoginErrorUsernameWrongException(ResponseErrorException):
class LoginErrorInvalidCredentialsException(ResponseErrorException):
"""Base class for login errors caused by permanently invalid credentials."""


class LoginErrorUsernameWrongException(LoginErrorInvalidCredentialsException):
pass


class LoginErrorPasswordWrongException(ResponseErrorException):
class LoginErrorPasswordWrongException(LoginErrorInvalidCredentialsException):
pass


class LoginErrorAlreadyLoginException(ResponseErrorException):
pass


class LoginErrorUsernamePasswordWrongException(ResponseErrorException):
class LoginErrorUsernamePasswordWrongException(LoginErrorInvalidCredentialsException):
pass


Expand Down

0 comments on commit 398ce44

Please sign in to comment.