Packages

c

kantan.codecs.error

ErrorCompanion

abstract class ErrorCompanion[T <: Error] extends Serializable

Provides useful instance creation methods for errors that might be created as a result of Java exceptions.

Source
Error.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErrorCompanion
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ErrorCompanion(defaultMsg: String)(f: (String) => T)

Value Members

  1. def apply(msg: String): T
  2. def apply(cause: Throwable): T
  3. def apply(msg: String, cause: Throwable): T
  4. implicit val isError: IsError[T]
  5. def safe[A](a: => A): Either[T, A]

    Attempts to evaluate the specified argument, wrapping errors in a T.