Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dry-python/returns
/ failure
Method
failure
returns/maybe.py:441–443 ·
view source on GitHub ↗
Raises exception for successful container.
(self)
Source
from the content-addressed store, hash-verified
439
return
self._inner_value
440
441
def
failure(self):
442
""
"Raises exception for successful container."
""
443
raise
UnwrapFailedError(self)
444
445
def
__bool__(self):
446
""
"
Callers
15
test_result_pattern_matching
Function · 0.45
test_ioresult_pattern_matching
Function · 0.45
test_unwrap_success
Function · 0.45
test_unwrap_failure
Function · 0.45
test_safe_failure
Function · 0.45
test_safe_failure_with_expected_error
Function · 0.45
test_non_flatten_future
Function · 0.45
test_non_flatten_context_future_result
Function · 0.45
test_result_error_alias_resolves
Function · 0.45
test_custom_result_error_types_resolve
Function · 0.45
test_reader_result_error_alias_resolves
Function · 0.45
test_custom_readerresult_types_resolve
Function · 0.45
Calls
1
UnwrapFailedError
Class · 0.90
Tested by
15
test_result_pattern_matching
Function · 0.36
test_ioresult_pattern_matching
Function · 0.36
test_unwrap_success
Function · 0.36
test_unwrap_failure
Function · 0.36
test_safe_failure
Function · 0.36
test_safe_failure_with_expected_error
Function · 0.36
test_non_flatten_future
Function · 0.36
test_non_flatten_context_future_result
Function · 0.36
test_result_error_alias_resolves
Function · 0.36
test_custom_result_error_types_resolve
Function · 0.36
test_reader_result_error_alias_resolves
Function · 0.36
test_custom_readerresult_types_resolve
Function · 0.36