java.lang.Object
tools.jackson.core.JacksonException.Reference
- All Implemented Interfaces:
Serializable
- Enclosing class:
- JacksonException
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.
- Since:
- 3.0 (in 2.x was part of databind-level exceptions only)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringLazily-constructed description of this instance; needed mostly to allow JDK serialization to work in case where_fromis non-serializable (and has to be dropped) but we still want to pass actual description along.protected Objectprotected intIndex within aCollectioninstance that contained the reference; used if index is relevant and available.protected StringName of property (for POJO) or key (for Maps) that is part of the reference. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_from
-
_propertyName
Name of property (for POJO) or key (for Maps) that is part of the reference. May be null for Collection types (which generally have_indexdefined), or when resolving Map classes without (yet) having an instance to operate on. -
_index
protected int _indexIndex within aCollectioninstance that contained the reference; used if index is relevant and available. If either not applicable, or not available, -1 is used to denote "not known" (or not relevant). -
_desc
Lazily-constructed description of this instance; needed mostly to allow JDK serialization to work in case where_fromis non-serializable (and has to be dropped) but we still want to pass actual description along.
-
-
Constructor Details
-
Reference
protected Reference()Default constructor for deserialization purposes -
Reference
-
Reference
-
Reference
-
-
Method Details
-
from
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 the accessor is not a getter on purpose as we cannot (in general) serialize/deserialize this reference
-
getPropertyName
-
getIndex
public int getIndex() -
getDescription
-
toString
-