pyg90alarm.exceptions

Exceptions specific to G90-based alarm systems.

Exceptions

G90CommandError

Raised when a command to the alarm panel reports an error.

G90CommandFailure

Raised when a command to the alarm panel reports failure.

G90EntityRegistrationError

Raised when registering an entity to the alarm panel fails.

G90Error

Represents a generic exception raised by many package classes.

G90PeripheralDefinitionNotFound

Raised when a peripheral definition is not found.

G90RetryableError

Raised for response or parsing conditions that trigger retries in G90BaseCommand and G90PaginatedCommand (e.g. wrong response code, truncated or extra data in paginated response).

G90TimeoutError

Raised when particular package class to report an operation (typically device command) has timed out.

exception pyg90alarm.exceptions.G90Error

Bases: Exception

Represents a generic exception raised by many package classes.

add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception pyg90alarm.exceptions.G90TimeoutError

Bases: TimeoutError, G90Error

Raised when particular package class to report an operation (typically device command) has timed out.

add_note(note, /)

Add a note to the exception

errno

POSIX exception code

filename

exception filename

filename2

second exception filename

strerror

exception strerror

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception pyg90alarm.exceptions.G90RetryableError

Bases: G90Error

Raised for response or parsing conditions that trigger retries in G90BaseCommand and G90PaginatedCommand (e.g. wrong response code, truncated or extra data in paginated response).

add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception pyg90alarm.exceptions.G90CommandFailure

Bases: G90Error

Raised when a command to the alarm panel reports failure.

add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception pyg90alarm.exceptions.G90CommandError

Bases: G90Error

Raised when a command to the alarm panel reports an error.

add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception pyg90alarm.exceptions.G90EntityRegistrationError

Bases: G90Error

Raised when registering an entity to the alarm panel fails.

add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception pyg90alarm.exceptions.G90PeripheralDefinitionNotFound

Bases: G90Error

Raised when a peripheral definition is not found.

add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.