Top Description Fields Constructors Methods
org.apache.avro.path

public Class TracingAvroTypeException

extends AvroTypeException
implements PathTracingException<AvroTypeException>
Class Inheritance
All Implemented Interfaces
org.apache.avro.path.PathTracingException
Imports
java.util.ArrayList, .List, org.apache.avro.AvroTypeException, .Schema, org.apache.avro.util.SchemaUtil

an AvroTypeException with extra fields used to trace back the path to a bad value through an object graph

Field Summary

Modifier and TypeField and Description
private final List<PathElement>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AvroTypeException
summarize(Schema
the root object for the operation that generated the exception
root
)

Implements org.apache.avro.path.PathTracingException.summarize.

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
)

Implements org.apache.avro.path.PathTracingException.tracePath.

appends a path element to the trace.

Field Detail

reversePathback to summary
private final List<PathElement> reversePath

Constructor Detail

TracingAvroTypeExceptionback to summary
public TracingAvroTypeException(AvroTypeException cause)

Method Detail

summarizeback to summary
public AvroTypeException summarize(Schema root)

Implements org.apache.avro.path.PathTracingException.summarize.

Doc from org.apache.avro.path.PathTracingException.summarize.

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:AvroTypeException

an exception

Annotations
@Override
tracePathback to summary
public void tracePath(PathElement step)

Implements org.apache.avro.path.PathTracingException.tracePath.

Doc from org.apache.avro.path.PathTracingException.tracePath.

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

Annotations
@Override