Raised Exceptions

exception cozify.Error.APIError(status_code, message)[source]

Error raised for non-200 API return codes

Parameters:
  • status_code (int) – HTTP status code returned by the API
  • message (str) – Potential error message returned by the API
status_code

HTTP status code returned by the API

Type:int
message

Potential error message returned by the API

Type:str
exception cozify.Error.AuthenticationError(message)[source]

Error raised for nonrecoverable authentication failures.

Parameters:message (str) – Human readable error description
message

Human readable error description

Type:str