ClassCastException with extra fields used to trace back the path to
a bad value through an object graph
| Modifier and Type | Field and Description |
|---|---|
| private final ClassCastException | |
| private final boolean | |
| private final Object | |
| private final Schema | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | TracingClassCastException(ClassCastException cause, Object datum, Schema expected, boolean customCoderUsed)
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized ClassCastException | getCause()
Overrides java. null if the
cause is nonexistent or unknown.
|
| public ClassCastException | Returns: a hopefully helpful error messagethe root object for the operation that generated the exception root)Implements org. |
| public void | tracePath(PathElement
an AvroPath step tracing back from the location of the original
exception towards the root of the data graph step)Implements org. |
| cause | back to summary |
|---|---|
| private final ClassCastException cause Hides java. | |
| customCoderUsed | back to summary |
|---|---|
| private final boolean customCoderUsed | |
| datum | back to summary |
|---|---|
| private final Object datum | |
| expected | back to summary |
|---|---|
| private final Schema expected | |
| reversePath | back to summary |
|---|---|
| private final List<PathElement> reversePath | |
| TracingClassCastException | back to summary |
|---|---|
| public TracingClassCastException(ClassCastException cause, Object datum, Schema expected, boolean customCoderUsed) | |
| getCause | back to summary |
|---|---|
| public synchronized ClassCastException getCause() Overrides java. Doc from java. Returns the cause of this throwable or This implementation returns the cause that was supplied via one of
the constructors requiring a
| |
| summarize | back to summary |
|---|---|
| public ClassCastException summarize(Schema root) Implements org. Doc from org. produces a user-facing exception to be thrown back out to user code
| |
| tracePath | back to summary |
|---|---|
| public void tracePath(PathElement step) Implements org. Doc from org. appends a path element to the trace. expected to be called in reverse-order as the exception bubbles up the stack
| |