Provides methods for obtaining default Catchers for possible DateTimeExceptions thrown by the underlying Java API.
Provides methods for obtaining default Catchers for possible DateTimeExceptions thrown by the underlying Java API.
import java.time._ import codes.reactive.scalatime._ import control.Catcher // Obtain a TimeCatcher for all DateTimeExceptions val catchAllLocalDate = Catcher.all(_ => LocalDate.now()) // Use the catcher to recover from a parse error val recovered = Try { LocalDate.parse(")()(@*@%@#%@#%)") } recover catchAllLocalDate
Provides functionality relating to Exception handling, validation and control structures.
control.Catcher