package scala
- Alphabetic
- By Inheritance
- scala
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class E(code: Option[Int] = None, name: Option[String] = None, message: Option[String] = None, causes: List[E] = List.empty, data: Map[String, String] = Map.empty, time: Option[Long] = None) extends Product with Serializable
A generic and immutable error, containing helpful information
A generic and immutable error, containing helpful information
- code
A numeric code identifying this error
- name
A name identifying this error, usually enum-like
- message
A message about this error, usually human-readable
- causes
Underlying cause(s) of this error, if any
- data
Arbitrary data related to this error as a key-value map
- time
Time when this error occurred as milliseconds, see java.lang.System#currentTimeMillis
- final case class EException(e: E) extends RuntimeException with Product with Serializable
A RuntimeException wrapping E to be used where errors are represented as E but an Exception is needed
A RuntimeException wrapping E to be used where errors are represented as E but an Exception is needed
- e
An E
- See also
java.lang.RuntimeException
- sealed trait EOr[+A] extends AnyRef
A container that can either be a Failure containing an E or Success containing a value, semantically a combination of Either and Try but specialized for E
A container that can either be a Failure containing an E or Success containing a value, semantically a combination of Either and Try but specialized for E
- A
Type of the value this EOr can contain
- implicit class EitherExtensionsForEOr[L, R] extends AnyRef
- implicit class OptionExtensionsForEOr[A] extends AnyRef
- implicit class ThrowableExtensionsForEOr extends AnyRef
- implicit class TryExtensionsForEOr[A] extends AnyRef
- implicit class ValueExtensionsForEOr[A] extends AnyRef
- type or[+_ <: E, +A] = EOr[A]
Type alias for EOr, allowing a more pleasing syntax as following:
Type alias for EOr, allowing a more pleasing syntax as following:
E or String // instead of EOr[String]
- See also
Value Members
- object E extends Serializable
- object EOr