public class TracingNullPointException extends NullPointerException implements PathTracingException<NullPointerException>
NullPointerException with extra fields used to trace back the path
to a null value through an object graph| Constructor and Description |
|---|
TracingNullPointException(NullPointerException cause,
Schema expected,
boolean customCoderUsed) |
| Modifier and Type | Method and Description |
|---|---|
NullPointerException |
getCause() |
NullPointerException |
summarize(Schema root)
produces a user-facing exception to be thrown back out to user code
|
void |
tracePath(PathElement step)
appends a path element to the trace.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TracingNullPointException(NullPointerException cause, Schema expected, boolean customCoderUsed)
public void tracePath(PathElement step)
PathTracingExceptiontracePath in interface PathTracingException<NullPointerException>step - an AvroPath step tracing back from the location of the original
exception towards the root of the data graphpublic NullPointerException getCause()
public NullPointerException summarize(Schema root)
PathTracingExceptionsummarize in interface PathTracingException<NullPointerException>root - the root object for the operation that generated the exceptionCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.