- class rusttypes.result.ResultException(inner: E)¶
Bases:
Exception,Generic[E]Exception that is thrown when calling
Result::try_on anErr. The inner value is the error that caused the exception. This exception is caught by thetry_guarddecorator. This type is not meant to be used by the user.- inner¶
The error that caused the exception.
- Type:
E
Examples
This exception is thrown when calling
Result::try_on anErr:>>> Err("error").try_() Traceback (most recent call last): ...