Class JacksonException.Reference
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.private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfrom()Object through which reference was resolved.intgetIndex()(package private) void(package private) voidsetIndex(int ix) (package private) voidtoString()(package private) ObjectMay need some cleaning here, given that `from` may or may not be serializable.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
_from
-
_propertyName
-
_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
-
-
Constructor Details
-
Reference
protected Reference()Default constructor for deserialization purposes -
Reference
-
Reference
-
Reference
-
-
Method Details
-
setPropertyName
-
setIndex
void setIndex(int ix) -
setDescription
-
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
-
writeReplace
Object writeReplace()May need some cleaning here, given that `from` may or may not be serializable.
-