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 graph| Constructor 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, toStringpublic TracingAvroTypeException(AvroTypeException cause)
public void tracePath(PathElement step)
PathTracingExceptiontracePath 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)
PathTracingExceptionsummarize in interface PathTracingException<AvroTypeException>root - the root object for the operation that generated the exceptionCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.