Exceptions¶
Module: s2auth.common.exceptions
ErrorType = Union[PairingErrorType, ConnectionErrorType]
module-attribute
¶
PairingErrorType
¶
Bases: str, Enum
Source code in src/s2auth/common/model/s2_connect_pairing.py
ConnectionErrorType
¶
Bases: str, Enum
Source code in src/s2auth/common/model/s2_connect_session_init.py
S2ConnectError
¶
Bases: Exception, ABC
Base exception for S2 Connect errors
Subclasses must define the error_type class attribute.
Source code in src/s2auth/common/exceptions.py
S2PairingError
¶
Bases: S2ConnectError
Base exception for S2 pairing errors
Source code in src/s2auth/common/exceptions.py
S2ConnectErrorWithDetails
¶
Bases: S2ConnectError, ABC
Base exception for S2 Connect errors
Subclasses must define the error_type class attribute.
Source code in src/s2auth/common/exceptions.py
IncompatibleHmacHashingAlgorithms
¶
Bases: S2ConnectError
Raised when no common HMAC hashing algorithm is found
Source code in src/s2auth/common/exceptions.py
VerificationError
¶
AccessError
¶
Bases: S2ConnectError
Permission is denied to the client. This generally results in an HTTP 401 error.
Source code in src/s2auth/common/exceptions.py
PairingNotCompleteError
¶
Bases: S2ConnectError
Pairing was not completed successfully before initiating a connection.
Source code in src/s2auth/common/exceptions.py
InvalidAccessTokenError
¶
Bases: AccessError
Invalid AccessToken when authenticating a new s2 connection.
Source code in src/s2auth/common/exceptions.py
InvalidServerError
¶
Bases: AccessError
Unknown serverNodeId was specified for this server.
Source code in src/s2auth/common/exceptions.py
NoCompatibleS2ConnectVersionError
¶
Bases: S2ConnectErrorWithDetails
No compatible S2Connect versions are available between the client and server.
Source code in src/s2auth/common/exceptions.py
NoCompatibleS2VersionError
¶
Bases: S2ConnectErrorWithDetails
No compatible S2 versions are available between the client and server.
Source code in src/s2auth/common/exceptions.py
NoCompatibleCommunitcationProtocol
¶
Bases: S2ConnectErrorWithDetails
No compatible communication protocols are available between the client and server.