Err

scodec.Err
See theErr companion object
trait Err

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.

Attributes

Companion
object
Source
Err.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

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.

Attributes

Source
Err.scala
def message: String

Gets a description of the error.

Gets a description of the error.

Attributes

Source
Err.scala
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.

Attributes

Source
Err.scala

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.

Attributes

Source
Err.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Err.scala