Exceptions¶
sonnys_backoffice.SonnysBackofficeError
¶
Bases: Exception
Base class for all errors raised by this library.
sonnys_backoffice.AuthenticationError
¶
Bases: SonnysBackofficeError
Login failed, or session expired and re-authentication failed.
sonnys_backoffice.NotFoundError
¶
Bases: SonnysBackofficeError
Lookup (by POS User ID or email) did not match any record.
sonnys_backoffice.ValidationError
¶
Bases: SonnysBackofficeError
Caller input violated a constraint, or Backoffice rejected the payload.
sonnys_backoffice.PermissionDeniedError
¶
Bases: SonnysBackofficeError
The bot user lacks sufficient rights for the requested operation.
sonnys_backoffice.DuplicateError
¶
Bases: SonnysBackofficeError
A record with the given email or POS User ID already exists on this tenant.
sonnys_backoffice.BackofficeServerError
¶
Bases: SonnysBackofficeError
Unexpected server response — HTTP 5xx or unparseable HTML.