Skip to content

Commit

Permalink
feat: added base exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Feb 27, 2023
1 parent 33cc388 commit 3cb40b8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/southern_company_api/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
class InvalidLogin(Exception):
class SouthernCompanyException(Exception):
pass


class CantReachSouthernCompany(Exception):
class InvalidLogin(SouthernCompanyException):
pass


class NoRequestTokenFound(Exception):
class CantReachSouthernCompany(SouthernCompanyException):
pass


class NoJwtTokenFound(Exception):
class NoRequestTokenFound(SouthernCompanyException):
pass


class NoScTokenFound(Exception):
class NoJwtTokenFound(SouthernCompanyException):
pass


class AccountFailure(Exception):
class NoScTokenFound(SouthernCompanyException):
pass


class UsageDataFailure(Exception):
class AccountFailure(SouthernCompanyException):
pass


class UsageDataFailure(SouthernCompanyException):
pass

0 comments on commit 3cb40b8

Please sign in to comment.