Exceptions
Custom exceptions raised by the ROAK SDK.
- exception roak_sdk.roak_error.RoakError[source]
Bases:
ExceptionBase exception for all ROAK SDK errors.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception roak_sdk.roak_error.AuthenticationError(status_code, message=None)[source]
Bases:
RoakErrorRaised when authentication fails.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception roak_sdk.roak_error.MissingUsernameError[source]
Bases:
RoakErrorRaised when no username is provided.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception roak_sdk.roak_error.MissingPasswordError[source]
Bases:
RoakErrorRaised when no password is provided.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception roak_sdk.roak_error.MissingTokenError[source]
Bases:
RoakErrorRaised when access token is missing from authentication response.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception roak_sdk.roak_error.MissingRefreshTokenError(message=None)[source]
Bases:
RoakErrorRaised when refresh token is missing but required.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.