Often times you want to filter out some specific errors from the client. Typically you'll handle this by calling NeverThrow's own mapErr() on your returned/yielded results, however sometimes it can be handy to do this globally for your SafeFn.
You can modify the error type of the SafeFn by using .mapErr(). This is a function that takes in an argument of the original error type (see ), and returns a value that will set the new error type.
As an example:
The possible Error type when running this function will be