Apply this catch logic to the supplied body.
Apply this catch logic to the supplied body, mapping the result into Either[Throwable, T] - Left(exception) if an exception was caught, Right(T) otherwise.
Apply this catch logic to the supplied body, mapping the result into Option[T] - None if any exception was caught, Some(T) otherwise.
Create a new Catch with additional exception handling logic.
Convenience methods.
Creates a String representation of this object.
Create a new Catch with the same isDefinedAt logic as this one, but with the supplied apply method replacing the current one.
A container class for catch/finally logic.
Pass a different value for rethrow if you want to probably unwisely allow catching control exceptions and other throwables which the rest of the world may expect to get through.