Packages

class CaseClassMappingException extends JsonMappingException

A subclass of JsonMappingException used to signal fatal problems with mapping of JSON content to a Scala case class.

Per-field details (of type CaseClassFieldMappingException) are carried to provide the ability to iterate over all exceptions causing the failure to construct the case class.

This extends JsonMappingException such that this exception is properly handled when deserializing into nested case-classes.

See also

CaseClassFieldMappingException

com.fasterxml.jackson.databind.JsonMappingException

Linear Supertypes
JsonMappingException, DatabindException, JsonProcessingException, JacksonException, IOException, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CaseClassMappingException
  2. JsonMappingException
  3. DatabindException
  4. JsonProcessingException
  5. JacksonException
  6. IOException
  7. Exception
  8. Throwable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _appendPathDesc(arg0: StringBuilder): Unit
    Attributes
    protected[databind]
    Definition Classes
    JsonMappingException
  5. def _buildMessage(): String
    Attributes
    protected[databind]
    Definition Classes
    JsonMappingException
  6. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clearLocation(): Unit
    Definition Classes
    JsonProcessingException
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. val errors: Seq[CaseClassFieldMappingException]

    The collection of CaseClassFieldMappingException instances which make up this CaseClassMappingException.

    The collection of CaseClassFieldMappingException instances which make up this CaseClassMappingException. This collection is intended to be purposely exhaustive in that is specifies all errors encountered in mapping JSON content to a Scala case class.

  13. def fillInStackTrace(): Throwable
    Definition Classes
    Throwable
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. def getCause(): Throwable
    Definition Classes
    Throwable
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getLocalizedMessage(): String
    Definition Classes
    JsonMappingException → Throwable
  18. def getLocation(): JsonLocation
    Definition Classes
    JsonProcessingException → JacksonException
  19. def getMessage(): String

    Formats a human-readable message which includes the underlying CaseClassMappingException messages.

    Formats a human-readable message which includes the underlying CaseClassMappingException messages.

    Example

    Multiple errors:

      2 errors encountered during deserialization.
    	     Errors: com.twitter.util.jackson.caseclass.exceptions.CaseClassFieldMappingException: data: must not be empty
    	             com.twitter.util.jackson.caseclass.exceptions.CaseClassFieldMappingException: number: must be greater than or equal to 5

    Single error:

    An error was encountered during deserialization.
        Error: com.twitter.util.jackson.caseclass.exceptions.CaseClassFieldMappingException: data: must not be empty
    Definition Classes
    CaseClassMappingException → JsonMappingException → JsonProcessingException → Throwable
  20. def getMessageSuffix(): String
    Attributes
    protected[core]
    Definition Classes
    JsonProcessingException
  21. def getOriginalMessage(): String
    Definition Classes
    JsonProcessingException → JacksonException
  22. def getPath(): List[Reference]
    Definition Classes
    JsonMappingException
  23. def getPathReference(arg0: StringBuilder): StringBuilder
    Definition Classes
    JsonMappingException
  24. def getPathReference(): String
    Definition Classes
    JsonMappingException
  25. def getProcessor(): AnyRef
    Definition Classes
    JsonMappingException → JsonProcessingException → JacksonException
    Annotations
    @JsonIgnore()
  26. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  27. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def prependPath(arg0: Reference): Unit
    Definition Classes
    JsonMappingException
  35. def prependPath(arg0: AnyRef, arg1: Int): Unit
    Definition Classes
    JsonMappingException → DatabindException
  36. def prependPath(arg0: AnyRef, arg1: String): Unit
    Definition Classes
    JsonMappingException → DatabindException
  37. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  38. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  39. def printStackTrace(): Unit
    Definition Classes
    Throwable
  40. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    JsonMappingException → JsonProcessingException → Throwable → AnyRef → Any
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  46. def withCause(arg0: Throwable): JsonMappingException
    Definition Classes
    JsonMappingException

Inherited from JsonMappingException

Inherited from DatabindException

Inherited from JsonProcessingException

Inherited from JacksonException

Inherited from IOException

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped