Class JsonMappingException.Reference

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    JsonMappingException

    public static class JsonMappingException.Reference
    extends java.lang.Object
    implements java.io.Serializable
    Simple bean class used to contain references. References can be added to indicate execution/reference path that lead to the problem that caused this exception to be thrown.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Reference​(java.lang.Object from)  
      Reference​(java.lang.Object from, int index)  
      Reference​(java.lang.Object from, java.lang.String fieldName)  
    • Constructor Detail

      • Reference

        public Reference​(java.lang.Object from)
      • Reference

        public Reference​(java.lang.Object from,
                         java.lang.String fieldName)
      • Reference

        public Reference​(java.lang.Object from,
                         int index)
    • Method Detail

      • getFrom

        public java.lang.Object getFrom()
        Object through which reference was resolved. Can be either actual instance (usually the case for serialization), or Class (usually the case for deserialization).

        Note that this value must be `transient` to allow serializability (as often such Object is NOT serializable; or, in case of `Class`, may not available at the point of deserialization). As such will return `null` if instance has been passed using JDK serialization.

      • getFieldName

        public java.lang.String getFieldName()
      • getIndex

        public int getIndex()
      • getDescription

        public java.lang.String getDescription()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object