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.
Returns string formatted according to given format string.
Returns string formatted according to given format string.
Format strings are as for String.format
(@see java.lang.String.format).
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.
Create a Catch object with the same isDefinedAt logic as this one,
but with the supplied apply method replacing the current one.
Apply this catch logic to the supplied body, mapping the result into Try[T] - Failure if an exception was caught, Success(T) otherwise.
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.