Err#

class coffea.processor.Err(exception, value=None)[source]#

Bases: Result

A failed result containing an exception, optionally with a partial value.

When the executor was run with recoverable=True and produced a partial accumulator before the failure, the partial output is preserved on value so callers can still salvage progress.

Attributes Summary

exception

value

Partial output captured before the failure, if any.

Methods Summary

is_ok()

unwrap()

Return the contained value on Ok; on Err re-raise the captured exception.

Attributes Documentation

exception#
value#

Partial output captured before the failure, if any.

Methods Documentation

is_ok() bool[source]#
unwrap()[source]#

Return the contained value on Ok; on Err re-raise the captured exception.