Catcher

object Catcher

Companion object for Catcher that provides a factory method for creating Throwable extractors.

Companion:
class
Source:
Catcher.scala
class Object
trait Matchable
class Any
Catcher.type

Value members

Concrete methods

def apply(partial: PartialFunction[Throwable, Boolean]): Catcher

Creates and returns a new Catcher that uses the passed partial function to determine matches.

Creates and returns a new Catcher that uses the passed partial function to determine matches.

Value parameters:
partial

the partial function that is used by returned extractor to determine matches

Source:
Catcher.scala