public class TracingAvroTypeException extends AvroTypeException implements PathTracingException<AvroTypeException>
AvroTypeException
with extra fields used to trace back the path to
a bad value through an object graphConstructor and Description |
---|
TracingAvroTypeException(AvroTypeException cause) |
Modifier and Type | Method and Description |
---|---|
AvroTypeException |
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, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TracingAvroTypeException(AvroTypeException cause)
public void tracePath(PathElement step)
PathTracingException
tracePath
in interface PathTracingException<AvroTypeException>
step
- an AvroPath step tracing back from the location of the original
exception towards the root of the data graphpublic AvroTypeException summarize(Schema root)
PathTracingException
summarize
in interface PathTracingException<AvroTypeException>
root
- the root object for the operation that generated the exceptionCopyright © 2009–2022 The Apache Software Foundation. All rights reserved.