e.scala
Members list
Packages
Type members
Classlikes
A generic and immutable error, containing helpful information
A generic and immutable error, containing helpful information
Value parameters
- causes
-
Underlying cause(s) of this error, if any
- code
-
A numeric code identifying this error
- data
-
Arbitrary data related to this error as a key-value map
- message
-
A message about this error, usually human-readable
- name
-
A name identifying this error, usually enum-like
- time
-
Time when this error occurred as milliseconds, see java.lang.System#currentTimeMillis
Attributes
- Companion
- object
- Supertypes
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
Value parameters
- e
-
An E
Attributes
- See also
-
_root_.e.scala.E
java.lang.RuntimeException
- Supertypes
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
Type parameters
- A
-
Type of the value this EOr can contain
Attributes
Types
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]
Type parameters
- A
-
Type of the value EOr can contain
Attributes
- See also
Extensions
Extensions
Constructs an EOr from evaluating this value and by converting caught Exception using given function
Constructs an EOr from evaluating this value and by converting caught Exception using given function
Value parameters
- ifFailure
-
An E conversion function in case evaluating this value throws
Attributes
- Returns
-
An EOr containing either evaluated value or an E computed by given function
Converts this value to a successful EOr[A]
Converts this value to a successful EOr[A]
Attributes
- Returns
-
An EOr[A] containing this value
- See also
Constructs an EOr from this _root_.scala.util.Either
Constructs an EOr from this _root_.scala.util.Either
Value parameters
- ifLeft
-
An E conversion function in case this Either is Left
Attributes
- Returns
-
An EOr containing either Right value in this Either or an E computed by given function
Constructs an EOr from this _root_.scala.util.Try
Constructs an EOr from this _root_.scala.util.Try
Value parameters
- ifFailure
-
An E conversion function in case this Try is Failure
Attributes
- Returns
-
An EOr containing either value in this Try or an E computed by given function