Package

com.twitter.finatra.jackson.caseclass

exceptions

Permalink

package exceptions

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. exceptions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class CaseClassFieldMappingException(path: PropertyPath, reason: Invalid) extends JsonMappingException with Product with Serializable

    Permalink

    A subclass of JsonMappingException which bundles together a failed field location as a CaseClassFieldMappingException.PropertyPath with the the failure reason represented by a ValidationResult.Invalid to carry the failure reason.

    A subclass of JsonMappingException which bundles together a failed field location as a CaseClassFieldMappingException.PropertyPath with the the failure reason represented by a ValidationResult.Invalid to carry the failure reason.

    path

    - a CaseClassFieldMappingException.PropertyPath instance to the case class field that caused the failure.

    reason

    - an instance of a ValidationResult.Invalid which carries details of the failure reason.

    Note

    this exception is a case class in order to have a useful equals() and hashcode() methods since this exception is generally carried in a collection inside of a CaseClassMappingException.

    See also

    CaseClassMappingException

    com.fasterxml.jackson.databind.JsonMappingException

    com.twitter.finatra.validation.ValidationResult.Invalid

    com.twitter.finatra.jackson.caseclass.exceptions.CaseClassFieldMappingException.PropertyPath

  2. class CaseClassMappingException extends JsonMappingException

    Permalink

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

    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

    com.fasterxml.jackson.databind.JsonMappingException

    CaseClassFieldMappingException

  3. class InjectableValuesException extends Exception with NoStackTrace

    Permalink

    Represents an exception during deserialization due to the inability to properly inject a value via Jackson com.fasterxml.jackson.databind.InjectableValues.

    Represents an exception during deserialization due to the inability to properly inject a value via Jackson com.fasterxml.jackson.databind.InjectableValues. A common cause is an incorrectly configured mapper that is not instantiated with an appropriate instance of a com.fasterxml.jackson.databind.InjectableValues that can locate the requested value to inject during deserialization.

    Note

    this exception is not handled during case class deserialization and is thus expected to be handled by callers.

  4. implicit final class RichJsonProcessingException[E <: JsonProcessingException] extends AnyVal

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped