Package

codes.reactive.scalatime

control

Permalink

package control

Provides functionality relating to Exception handling, validation and control structures.

Source
package.scala
See also

control.Catcher

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. control
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. object Catcher

    Permalink

    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.

    Example:
    1. 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

Inherited from AnyRef

Inherited from Any

Ungrouped