Catching

ammonite.util.Catching
case class Catching(handler: PartialFunction[Throwable, Failing])

Fake for-comprehension generator to catch errors and turn them into Res.Failures

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def flatMap[T](t: Unit => Res[T]): Res[T]
def foreach[T](t: Unit => T): T
def map[T](t: Unit => T): Res[T]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product