Releases: FlixCoder/neuer-error
Releases · FlixCoder/neuer-error
v0.3.0
- breaking: Added a marker generic to
NeuErrto allow enforcing compile-time errors when no.contextis given. - breaking: Renamed
CtxResultExttrait toNeuErrResultExt.
The NeuErr type without marker and the default Result will work as previously, not requiring added context. However, there is a new option to use a specific marker to require additional context before returning from the current function. This is simplified by a special macro require_context!. Please see the docs for more details.
Due to the marker changes, the .context methods will now return an error with the marker applied, so there might be conversions required in cases where the result was directly returned instead of using the question mark operator.