Error Handling

This section documents error handling in AVBlocks.

ErrorInfo

The ErrorInfo class describes an AVBlocks error.

class avblocks.ErrorInfo

Bases: object

Describes an AVBlocks error.

property block: str

The name of the component/block that has generated the error. This is useful only when facility is ErrorFacility.Block.

clone() ErrorInfo

Creates a deep copy of the ErrorInfo object.

Returns:

A new ErrorInfo instance which is a deep copy of the current object.

property code: int

Error code. The value depends on the error facility.

property facility: ErrorFacility

Error facility. This is the AVBlocks subsystem that has generated the error.

property hint: str

Diagnostic hint. This is an implementation specific diagnostics message, suitable for error logs or debugging.

property message: str

Error message. This is a human-readable description of the error.