Class

org.tupol.utils

TryOps

Related Doc: package utils

Permalink

implicit final class TryOps[T] extends AnyVal

Simple decorator for the scala Try, which adds the following simple functions: - composable error logging - composable success logging

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TryOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TryOps(attempt: Try[T])

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. val attempt: Try[T]

    Permalink
  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def log(successLogging: (T) ⇒ Unit, failureLogging: (Throwable) ⇒ Unit): Try[T]

    Permalink

    Log the progress and return back the try.

  9. def logFailure(logging: (Throwable) ⇒ Unit): Try[T]

    Permalink

    Log the error using the logging function and return the failure

  10. def logSuccess(logging: (T) ⇒ Unit): Try[T]

    Permalink

    Log the success using the logging function and return the attempt

  11. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped