Package com.fasterxml.jackson.databind
Class JsonMappingException.Reference
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonMappingException.Reference
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- JsonMappingException
public static class JsonMappingException.Reference extends Object implements 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getFieldName()
Object
getFrom()
Object through which reference was resolved.int
getIndex()
String
toString()
-
-
-
Method Detail
-
getFrom
public 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 String getFieldName()
-
getIndex
public int getIndex()
-
getDescription
public String getDescription()
-
-