trait HelperComponent extends LoggingHelper with FutureHelper with ThrowingHelper
A Software Component This just bundles together various helpers that are commonly used within a software component
- Alphabetic
- By Inheritance
- HelperComponent
- FutureHelper
- ThrowingHelper
- LoggingHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
await[X](future: ⇒ Future[X], opName: String)(implicit to: FiniteDuration = timeout): Try[X]
- Definition Classes
- FutureHelper
-
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.
- Definition Classes
- FutureHelper
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
createLoggerName: String
- Attributes
- protected
- Definition Classes
- LoggingHelper
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
level: Level
- Definition Classes
- LoggingHelper
-
lazy val
log: Logger
- Attributes
- protected
- Definition Classes
- LoggingHelper
-
def
loggerName: String
- Definition Classes
- LoggingHelper
-
def
mkThrowable(msg: String, cause: Option[Throwable] = None): ThrowableWithComponent
- Attributes
- protected
- Definition Classes
- ThrowingHelper
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
notImplemented(what: String): Nothing
- Definition Classes
- ThrowingHelper
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
val
timeout: FiniteDuration
- Definition Classes
- FutureHelper
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )