If this result holds an exception, maps the exception to another exception by applying the given function to the exception, otherwise the returned result holds the value of this result.
func |
a function applied to exception |
the mapped result |