Catcher

org.scalactic.Catcher
See theCatcher companion class
object Catcher

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

Attributes

Companion
class
Source
Catcher.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Catcher.type

Members list

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

Attributes

Source
Catcher.scala