gufo.err.abc.failfast¶
BaseFailFast.
BaseFailFast
¶
Bases: ABC
Abstract base type for fail-fast behavior.
Fail-fast classes must implement must_die
method.
When fail-fast check decides the error is unrecoverable,
it must return True
value.
must_die(t, v, tb)
abstractmethod
¶
Fail-fast check. Must be overriden in subclasses.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
t |
Type[BaseException]
|
Exception type. Same as |
required |
v |
BaseException
|
Exception value. Same as |
required |
tb |
TracebackType
|
Traceback. Same as |
required |
Returns:
Type | Description |
---|---|
bool
|
|
bool
|
must be terminated ASAP. |
bool
|
|