NullPointerException with extra fields used to trace back the path
to a null value through an object graph
| Modifier and Type | Field and Description |
|---|---|
| private final NullPointerException | |
| private final boolean | |
| private final Schema | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized NullPointerException | getCause()
Overrides java. null if the
cause is nonexistent or unknown.
|
| public NullPointerException | 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 NullPointerException cause Hides java. | |
| customCoderUsed | back to summary |
|---|---|
| private final boolean customCoderUsed | |
| expected | back to summary |
|---|---|
| private final Schema expected | |
| reversePath | back to summary |
|---|---|
| private final List<PathElement> reversePath | |
| TracingNullPointException | back to summary |
|---|---|
| public TracingNullPointException(NullPointerException cause, Schema expected, boolean customCoderUsed) | |
| getCause | back to summary |
|---|---|
| public synchronized NullPointerException 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 NullPointerException 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
| |