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 graphConstructor 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, toString
public TracingNullPointException(NullPointerException cause, Schema expected, boolean customCoderUsed)
public void tracePath(PathElement step)
PathTracingException
tracePath
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)
PathTracingException
summarize
in interface PathTracingException<NullPointerException>
root
- the root object for the operation that generated the exceptionCopyright © 2009–2022 The Apache Software Foundation. All rights reserved.