ErrorCode

final class ntoseye.ErrorCode

Subclass of BaseRecord.

A decoded NTSTATUS, Win32, or HRESULT code (!error).

property code: int
property customer: bool | None

Whether the code is customer-defined (its C bit).

property description: str
property facility: int | None

The facility that the code encodes.

property kind: Literal['ntstatus', 'hresult', 'win32', 'unknown']
property name: str

The symbolic name of the code; empty when no name is known.

property severity: Literal['success', 'informational', 'warning', 'error'] | None

success, informational, warning, or error. None for a Win32 code.

property win32_code: int | None

The Win32 error: the code itself, or the Win32 error that a HRESULT_FROM_WIN32 code wraps.

property win32_name: str | None

The name of that Win32 error.