A type representing the error state of a Result, containing either
an expected error of type E or an unexpected ResultError.
This type ensures exactly one error is present: either an expected error
(an anticipated failure of type E) or an unexpected error (a runtime or
exceptional failure). Use isExpected or
isUnexpected to narrow the type if needed.
A type representing the error state of a Result, containing either an expected error of type
E
or an unexpected ResultError.This type ensures exactly one error is present: either an expected error (an anticipated failure of type
E
) or an unexpected error (a runtime or exceptional failure). Use isExpected or isUnexpected to narrow the type if needed.