ThrowableOrOps

final class ThrowableOrOps[E <: Throwable, +A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def getOrThrow: A
def throwErrors(implicit ev: Exception <:< E): Either[Exception, A]

Throws if this is a Left and the Throwable is not an Exception.

Throws if this is a Left and the Throwable is not an Exception.

def throwFatal: Either[E, A]

Throws if this is a Left and the Throwable does not match the scala.util.control.NonFatal pattern.

Throws if this is a Left and the Throwable does not match the scala.util.control.NonFatal pattern.

def wrapException[E2 <: Throwable](wrapFn: E => E2): Either[E2, A]