scala.util.control

Exception

object Exception extends AnyRef

source: Exception.scala
Inherited
  1. Hide All
  2. Show all
  1. AnyRef
  2. Any
Visibility
  1. Public
  2. All

Type Members

  1. class By[T, R] extends AnyRef

    Returns a partially constructed Catch object, which you must give an exception handler function as an argument to "by".

  2. class Catch[+T] extends Described

    A container class for catch/finally logic.

  3. type Catcher = PartialFunction[Throwable, T]

  4. trait Described extends AnyRef

  5. type ExceptionCatcher = PartialFunction[Exception, T]

  6. class Finally extends Described

    A container class for finally code.

  7. class Try[+T] extends AnyRef

    A container class for Try logic

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. def allCatch[T]: Catch[T]

    A Catch object which catches everything.

  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  10. def catching[T](c: PartialFunction[Throwable, T]): Catch[T]

  11. def catching[T](exceptions: java.lang.Class[_]*): Catch[T]

    Creates a Catch object which will catch any of the supplied exceptions.

  12. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  13. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  14. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  15. def failing[T](exceptions: java.lang.Class[_]*): Catch[Option[T]]

    Creates a Catch object which maps all the supplied exceptions to 'None'.

  16. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  17. implicit def fromExceptionCatcher[T](pf: PartialFunction[Exception, T]): PartialFunction[Throwable, T]

  18. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  19. def handling[T](exceptions: java.lang.Class[_]*): By[(Throwable) ⇒ T, Catch[T]]

  20. def hashCode(): Int

    Returns a hash code value for the object.

  21. def ignoring(exceptions: java.lang.Class[_]*): Catch[Unit]

    Creates a Catch object which catches and ignores any of the supplied exceptions.

  22. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  23. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  24. val noCatch: Catch[Nothing]

    The empty Catch object.

  25. val nothingCatcher: PartialFunction[Throwable, Nothing]

  26. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  27. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  28. def saving[A](oldVal: A, newVal: A, setter: (A) ⇒ Unit): Catch[Nothing]

    Experimental

  29. def synchronized[T0](arg0: T0): T0

  30. def toString(): String

    Returns a string representation of the object.

  31. def ultimately[T](body: ⇒ Unit): Catch[T]

    Returns a Catch object with no catch logic and the argument as Finally.

  32. def unwrapping[T](exceptions: java.lang.Class[_]*): Catch[T]

    Creates a Catch object which unwraps any of the supplied exceptions.

  33. def wait(): Unit

  34. def wait(arg0: Long, arg1: Int): Unit

  35. def wait(arg0: Long): Unit