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.
result type of bodies used in try and catch blocks
Finally logic which if defined will be invoked after catch logic
Partial function used when applying catch logic to determine result value
Predicate on throwables determining when to rethrow a caughtThrowable
Create a new Catch container from this object and the supplied finally body.
Create a new Catch container from this object and the supplied finally body.
The additional logic to apply after all existing finally bodies
Apply this catch logic to the supplied body.
Apply this catch logic to the supplied body, mapping the result intoEither[Throwable, T] -Left(exception) if an exception was caught,Right(T) otherwise.
Apply this catch logic to the supplied body, mapping the result intoEither[Throwable, T] -Left(exception) if an exception was caught,Right(T) otherwise.
Apply this catch logic to the supplied body, mapping the result intoOption[T] -None if any exception was caught,Some(T) otherwise.
Apply this catch logic to the supplied body, mapping the result intoOption[T] -None if any exception was caught,Some(T) otherwise.
Create a new Catch with additional exception handling logic.
Convenience methods.
Create aCatch object with the sameisDefinedAt logic as this one, but with the suppliedapply method replacing the current one.
Create aCatch object with the sameisDefinedAt logic as this one, but with the suppliedapply method replacing the current one.
Apply this catch logic to the supplied body, mapping the result intoTry[T] -Failure if an exception was caught,Success(T) otherwise.
Apply this catch logic to the supplied body, mapping the result intoTry[T] -Failure if an exception was caught,Success(T) otherwise.
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
a string representation of the object.