class documentation

class Err(Generic[E_co]):

Constructor: Err(value)

View In Hierarchy

A value that signifies failure and which stores arbitrary data for the error.

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __ne__ Undocumented
Method __repr__ Undocumented
Method err Return the error.
Method ok Return None.
Method unwrap Raises an UnwrapError.
Class Variable __match_args__ Undocumented
Class Variable __slots__ Undocumented
Instance Variable _value Undocumented
def __eq__(self, other: object) -> bool:

Undocumented

def __hash__(self) -> int:

Undocumented

def __init__(self, value: E_co):

Undocumented

def __iter__(self) -> Iterator[NoReturn]:

Undocumented

def __ne__(self, other: object) -> bool:

Undocumented

def __repr__(self) -> str:

Undocumented

def err(self) -> E_co:

Return the error.

def ok(self):

Return None.

def unwrap(self) -> NoReturn:

Raises an UnwrapError.

__match_args__: tuple[str, ...] =

Undocumented

__slots__: tuple[str, ...] =

Undocumented

_value =

Undocumented