Object/Trait

org.specs2.control

Exceptions

Related Docs: trait Exceptions | package control

Permalink

object Exceptions extends Exceptions

Linear Supertypes
Exceptions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Exceptions
  2. Exceptions
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def catchAll[T, S](a: ⇒ T)(f: (Throwable) ⇒ S): Either[S, T]

    Permalink

    try to evaluate an expression, returning Either

    try to evaluate an expression, returning Either

    If the expression throws any Throwable a function f is used to return the left value of the Either returned value.

    Definition Classes
    Exceptions
  6. def catchAllOr[T](a: ⇒ T)(f: (Throwable) ⇒ T): T

    Permalink

    try to evaluate an expression, returning a value T

    try to evaluate an expression, returning a value T

    If the expression throws a Throwable a function f is used to return a value of the expected type.

    Definition Classes
    Exceptions
  7. def catchAllOrElse[T](a: ⇒ T)(ko: ⇒ T): T

    Permalink

    try to evaluate an expression, returning a value T

    try to evaluate an expression, returning a value T

    If the expression throws a Throwable, then return a default value

    Definition Classes
    Exceptions
  8. def catchAll_Either[T, S](a: ⇒ T)(f: (Throwable) ⇒ S): Either[S, T]

    Permalink

    try to evaluate an expression, returning Either

    try to evaluate an expression, returning Either

    If the expression throws an Exception a function f is used to return the left value of the Either returned value.

    Definition Classes
    Exceptions
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. def tryCollect[T](a: ⇒ T)(partialFunction: PartialFunction[T, Boolean]): Boolean

    Permalink

    try to apply a partial function to a value

    try to apply a partial function to a value

    Definition Classes
    Exceptions
  21. def tryCollectOr[T, S](a: ⇒ T, or: S)(partialFunction: PartialFunction[T, S]): S

    Permalink

    try to apply a partial function to a value, with a default value if something goes wrong

    try to apply a partial function to a value, with a default value if something goes wrong

    Definition Classes
    Exceptions
  22. def tryMap[T, S](a: ⇒ T)(ok: S)(ko: S): S

    Permalink

    try to evaluate an expression and return ok if nothing fails.

    try to evaluate an expression and return ok if nothing fails. return ko otherwise

    Definition Classes
    Exceptions
  23. def tryOk[T](a: ⇒ T): Boolean

    Permalink

    try to evaluate an expression and return true if nothing fails.

    try to evaluate an expression and return true if nothing fails. return false otherwise

    Definition Classes
    Exceptions
  24. def tryOr[T](a: ⇒ T)(f: (Throwable) ⇒ T): T

    Permalink

    try to evaluate an expression, returning a value T

    try to evaluate an expression, returning a value T

    If the expression throws an Exception a function f is used to return a value of the expected type.

    Definition Classes
    Exceptions
  25. def tryOrElse[T](a: ⇒ T)(ko: T): T

    Permalink

    try to evaluate an expression and return it if nothing fails.

    try to evaluate an expression and return it if nothing fails. return ko otherwise

    Definition Classes
    Exceptions
  26. def tryOrNone[T](a: ⇒ T): Option[T]

    Permalink

    try to evaluate an expression and return it in an Option if nothing fails.

    try to evaluate an expression and return it in an Option if nothing fails. return None otherwise

    Definition Classes
    Exceptions
  27. def try_Either[T, S](a: ⇒ T)(f: (Throwable) ⇒ S): Either[S, T]

    Permalink

    try to evaluate an expression, returning Either

    try to evaluate an expression, returning Either

    If the expression throws an Exception a function f is used to return the left value of the Either returned value.

    Definition Classes
    Exceptions
  28. def trye[T, S](a: ⇒ T)(f: (Throwable) ⇒ S): Either[S, T]

    Permalink

    try to evaluate an expression, returning Either

    try to evaluate an expression, returning Either

    If the expression throws an Exception a function f is used to return the left value of the Either returned value.

    Definition Classes
    Exceptions
  29. def tryo[T](a: ⇒ T): Option[T]

    Permalink

    try to evaluate an expression, returning an Option

    try to evaluate an expression, returning an Option

    The 'tryo' name comes from the lift project: http://liftweb.net

    returns

    None if there is an exception, or Some(value)

    Definition Classes
    Exceptions
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Exceptions

Inherited from AnyRef

Inherited from Any

Ungrouped