Optional
causeOptional
stackApplies one of two functions to the contained error based on its type.
Applies the first function in case the inner error is unexpected
ResultError, or the second function if the inner error is
expected E
.
Checks if this is an expected error, narrowing to ExpectedError.
Checks if this is an unexpected error, narrowing to UnexpectedError.
Base interface for CheckedError instances, providing methods to inspect and handle the contained error.