“CatchableErrorKind” errors – those which can be detected by
Note: this type is deliberately not incorporated as a variant of ErrorKind, because then Result<Value,ErrorKind> would have redundant representations for catchable errors, which would make it too easy to handle errors incorrectly:
Because CatchableErrorKind is not a variant of ErrorKind, you will often see functions which return a type like:
… where T is any type other than Value. This is unfortunate,
because Rust’s magic
?-syntax does not work on nested Result
values like this.
TODO(amjoseph): investigate result<T,Either<CatchableErrorKind,ErrorKind>>
Resolving a user-supplied angle brackets path literal failed in some way.