Err

trait Err

Describes an error.

Describes an error.

An error has a message and a list of context identifiers that provide insight into where an error occurs in a large structure.

This type is not sealed so that codecs can return domain specific subtypes and dispatch on those subtypes.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def context: List[String]

Gets a stack of context identifiers.

Gets a stack of context identifiers.

The head of the list is the outermost (i.e., least specific) identifier.

def message: String

Gets a description of the error.

Gets a description of the error.

def pushContext(ctx: String): Err

Returns a new error with the specified context identifier pushed in to the context stack.

Returns a new error with the specified context identifier pushed in to the context stack.

Concrete methods

def messageWithContext: String

Gets a description of the error with the context identifiers prefixing the message.

Gets a description of the error with the context identifiers prefixing the message.

override def toString: String
Definition Classes
Any