AnyhowErrExtensions<S> extension
- on
-
- Err<
S>
- Err<
Methods
-
context(
Object context) → Err< S> - Returns an Error with the additional context. The context should not be an instance of Error.
-
withContext(
Object fn()) → Err< S> - Lazily calls the function if the Result is an Err and returns an Error with the additional context. The context should not be an instance of Error.