diff options
author | Kali Kaneko <kali@leap.se> | 2016-04-26 21:35:21 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-04-26 21:35:21 -0400 |
commit | 63a3b1355a5c7cf031ddfa58736e83908c539cdb (patch) | |
tree | 4ee952b7d1d5a2f7b1bd2f622989ae913c19eb8d /src/leap/bitmask/auth/exceptions.py | |
parent | 0868bc168ee5286f1842bde41a4a984497e6885e (diff) | |
parent | 3b3731d873664db00c02603363f61d34c41a3990 (diff) |
Merge branch 'debian/experimental-pix' into debian/experimental
Diffstat (limited to 'src/leap/bitmask/auth/exceptions.py')
-rw-r--r-- | src/leap/bitmask/auth/exceptions.py | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/leap/bitmask/auth/exceptions.py b/src/leap/bitmask/auth/exceptions.py new file mode 100644 index 00000000..3dea3f76 --- /dev/null +++ b/src/leap/bitmask/auth/exceptions.py @@ -0,0 +1,65 @@ +class SRPAuthenticationError(Exception): + """ + Exception raised for authentication errors + """ + pass + + +class SRPAuthConnectionError(SRPAuthenticationError): + """ + Exception raised when there's a connection error + """ + pass + + +class SRPAuthBadStatusCode(SRPAuthenticationError): + """ + Exception raised when we received an unknown bad status code + """ + pass + + +class SRPAuthNoSalt(SRPAuthenticationError): + """ + Exception raised when we don't receive the salt param at a + specific point in the auth process + """ + pass + + +class SRPAuthNoB(SRPAuthenticationError): + """ + Exception raised when we don't receive the B param at a specific + point in the auth process + """ + pass + + +class SRPAuthBadDataFromServer(SRPAuthenticationError): + """ + Generic exception when we receive bad data from the server. + """ + pass + + +class SRPAuthBadUserOrPassword(SRPAuthenticationError): + """ + Exception raised when the user provided a bad password to auth. + """ + pass + + +class SRPAuthVerificationFailed(SRPAuthenticationError): + """ + Exception raised when we can't verify the SRP data received from + the server. + """ + pass + + +class SRPAuthNoSessionId(SRPAuthenticationError): + """ + Exception raised when we don't receive a session id from the + server. + """ + pass |