scala.util.control.Exception.Catch
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.
Type parametersresult 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 caught Throwable
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.
Value parametersThe 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.
AttributesApply 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 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.
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.
Create a new Catch with additional exception handling logic.
AttributesCreate a Catch
object with the same isDefinedAt
logic as this one, but with the supplied apply
method replacing the current one.
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.
Apply this catch logic to the supplied body, mapping the result into Try[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.
Attributesa string representation of the object.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4