scala.util.control.Exception
Catch
class
Catch
[+T]
extends Described
Instance Constructors
-
new
Catch
(pf: Catcher[T], fin: Option[Finally], rethrow: (Throwable) ⇒ Boolean)
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
-
def
andFinally
(body: ⇒ Unit): Catch[T]
-
def
apply
[U >: T]
(body: ⇒ U): U
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(): AnyRef
-
def
desc
: String
-
def
either
[U >: T]
(body: ⇒ U): Either[Throwable, U]
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_ <: java.lang.Object]
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
val
name
: String
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
opt
[U >: T]
(body: ⇒ U): Option[U]
-
def
or
[U >: T]
(other: Catch[U]): Catch[U]
-
def
or
[U >: T]
(pf2: Catcher[U]): Catch[U]
-
val
pf
: Catcher[T]
-
val
rethrow
: (Throwable) ⇒ Boolean
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toEither
: Catch[Either[Throwable, T]]
-
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
-
def
withApply
[U]
(f: (Throwable) ⇒ U): Catch[U]
-
def
withDesc
(s: String): Catch.this.type
Value Members
-
def
desc
: String
-
def
toString
(): String
-
def
withDesc
(s: String): Catch.this.type
Inherited from AnyRef
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
clone
(): AnyRef
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_ <: java.lang.Object]
-
def
hashCode
(): Int
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from Any
Value Members
-
-
-
def
asInstanceOf
[T0]
: T0
-
def
isInstanceOf
[T0]
: Boolean
A container class for catch/finally logic.
Pass a different value for rethrow if you want to probably unwisely allow catching control exceptions and other throwables which the rest of the world may expect to get through.