Packages

trait IsError[E] extends Serializable

Type class for types that can be used as errors.

This is mostly meant to work in conjunction with Error, and lets code that deals with errors turn them into values of the right error type.

Self Type
IsError[E]
Source
IsError.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IsError
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def from(msg: String, t: Throwable): E

    Creates a new instance of E from an error message and exception.

  2. abstract def fromMessage(msg: String): E

    Creates a new instance of E from an error message.

  3. abstract def fromThrowable(t: Throwable): E

    Creates a new instance of E from an exception.

Concrete Value Members

  1. def map[EE](f: (E) => EE): IsError[EE]
  2. def safe[A](a: => A): Either[E, A]

    Safely evaluates the specified argument, wrapping errors in a E.