Packages

t

com.reactific.helpers

FutureHelper

trait FutureHelper extends LoggingHelper with ThrowingHelper

Utilities used throughout Scrupla. Should probably be an aspect, but we just mix this in as needed. Helps with logging, throwing exceptions and dealing with futures.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FutureHelper
  2. ThrowingHelper
  3. LoggingHelper
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def await[X](future: ⇒ Future[X], opName: String)(implicit to: FiniteDuration = timeout): Try[X]
  6. def await[X](future: ⇒ Future[X], duration: FiniteDuration, opName: String): Try[X]

    Handle Exceptions From Asynchronous Results This awaits a future operation that returns HTML and converts any exception that arises during the future operation or waiting into HTML as well.

    Handle Exceptions From Asynchronous Results This awaits a future operation that returns HTML and converts any exception that arises during the future operation or waiting into HTML as well. So, this is guaranteed to never let an exception escape and to always return Html.

    future

    The Future[Html] to wait for

    duration

    How long to wait, at most

    opName

    The name of the operation being waited for, to assist with error messages

    returns

    A blob of Html containing either the intended result or an error message.

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createLoggerName: String
    Attributes
    protected
    Definition Classes
    LoggingHelper
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def level: Level
    Definition Classes
    LoggingHelper
  16. lazy val log: Logger
    Attributes
    protected
    Definition Classes
    LoggingHelper
  17. def loggerName: String
    Definition Classes
    LoggingHelper
  18. def mkThrowable(msg: String, cause: Option[Throwable] = None): ThrowableWithComponent
    Attributes
    protected
    Definition Classes
    ThrowingHelper
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def notImplemented(what: String): Nothing
    Definition Classes
    ThrowingHelper
  21. final def notify(): Unit
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. implicit val timeout: FiniteDuration
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def toss(msg: ⇒ String, cause: Option[Throwable] = None): Nothing

    Identity Aware Exception Toss This function makes it easier to throw (toss) an exception that adds a message to it and also identifies the tosser that threw it.

    Identity Aware Exception Toss This function makes it easier to throw (toss) an exception that adds a message to it and also identifies the tosser that threw it. This helps track down where in the code the message was thrown from.

    msg

    - Message to add to the exception

    cause

    - The root cause exception

    Definition Classes
    ThrowingHelper
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ThrowingHelper

Inherited from LoggingHelper

Inherited from AnyRef

Inherited from Any

Ungrouped