Top Description Methods
org.apache.avro.path

public Interface PathTracingException<T extends java.lang.Throwable>

Known Direct Implementers
org.apache.avro.path.TracingAvroTypeException, org.apache.avro.path.TracingClassCastException, org.apache.avro.path.TracingNullPointException
Type Parameters
<T>
the regular (user-facing) exception that will be summarize(Schema)ed out of this class
Imports
org.apache.avro.Schema

interface for exceptions that can trace the AvroPath of an error

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

an exception
summarize
(Schema
the root object for the operation that generated the exception
root
)

produces a user-facing exception to be thrown back out to user code

public void
tracePath(PathElement
an AvroPath step tracing back from the location of the original exception towards the root of the data graph
step
)

appends a path element to the trace.

Method Detail

summarizeback to summary
public T summarize(Schema root)

produces a user-facing exception to be thrown back out to user code

Parameters
root:Schema

the root object for the operation that generated the exception

Returns:T

an exception

tracePathback to summary
public void tracePath(PathElement step)

appends a path element to the trace. expected to be called in reverse-order as the exception bubbles up the stack

Parameters
step:PathElement

an AvroPath step tracing back from the location of the original exception towards the root of the data graph