DecodingFailure

sealed abstract class DecodingFailure(lazyReason: Eval[Reason]) extends Error

An exception representing a decoding failure and (lazily) capturing the decoding history resulting in the failure.

Companion:
object
Source:
Error.scala
class Error
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Value members

Constructors

def this(reason: Reason)

Deprecated constructors

@deprecated("use a DecodingFailure.Reason", since = "0.14.3")
def this(message: String)
Deprecated
[Since version 0.14.3]
Source:
Error.scala

Abstract methods

Concrete methods

final def copy(message: String, history: => List[CursorOp]): DecodingFailure
final override def equals(that: Any): Boolean
Definition Classes
Any
Source:
Error.scala
final override def getMessage: String
Definition Classes
Throwable
Source:
Error.scala
final override def hashCode: Int
Definition Classes
Any
Source:
Error.scala

The location in the JSON where the decoding failure occurred. For various reasons, in 0.14.x this may not always be present.

The location in the JSON where the decoding failure occurred. For various reasons, in 0.14.x this may not always be present.

Source:
Error.scala
final override def toString: String
Definition Classes
Throwable -> Any
Source:
Error.scala

Inherited methods

final def addSuppressed(x$0: Throwable): Unit
Inherited from:
Throwable
final override def fillInStackTrace(): Throwable
Definition Classes
Error -> Throwable
Inherited from:
Error
Source:
Error.scala
def getCause(): Throwable
Inherited from:
Throwable
def getLocalizedMessage(): String
Inherited from:
Throwable
def getStackTrace(): Array[StackTraceElement]
Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]
Inherited from:
Throwable
def initCause(x$0: Throwable): Throwable
Inherited from:
Throwable
def printStackTrace(x$0: PrintWriter): Unit
Inherited from:
Throwable
def printStackTrace(x$0: PrintStream): Unit
Inherited from:
Throwable
Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit
Inherited from:
Throwable