pg.utils.ErrorInfo

Accessible via pg.utils.ErrorInfo.

class ErrorInfo[source]

Bases: object

Interface for error information.

Attributes:

description

The description of the error.

stacktrace

The stacktrace of the error.

tag

A path of the error types in the exception chain.

Methods:

from_exception(error)

Creates an error info from an exception.

abstract property description: str[source]

The description of the error.

classmethod from_exception(error)[source]

Creates an error info from an exception.

Return type:

pg.utils.ErrorInfo

abstract property stacktrace: str[source]

The stacktrace of the error.

abstract property tag: str[source]

A path of the error types in the exception chain.