Package org.apache.avro.path
Class TracingAvroTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.avro.AvroRuntimeException
org.apache.avro.AvroTypeException
org.apache.avro.path.TracingAvroTypeException
- All Implemented Interfaces:
Serializable
,PathTracingException<AvroTypeException>
public class TracingAvroTypeException
extends AvroTypeException
implements PathTracingException<AvroTypeException>
an
AvroTypeException
with extra fields used to trace back the path to
a bad value through an object graph- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionproduces a user-facing exception to be thrown back out to user codevoid
tracePath
(PathElement step) appends a path element to the trace. expected to be called in reverse-order as the exception bubbles up the stackMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TracingAvroTypeException
-
-
Method Details
-
tracePath
Description copied from interface:PathTracingException
appends a path element to the trace. expected to be called in reverse-order as the exception bubbles up the stack- Specified by:
tracePath
in interfacePathTracingException<AvroTypeException>
- Parameters:
step
- an AvroPath step tracing back from the location of the original exception towards the root of the data graph
-
summarize
Description copied from interface:PathTracingException
produces a user-facing exception to be thrown back out to user code- Specified by:
summarize
in interfacePathTracingException<AvroTypeException>
- Parameters:
root
- the root object for the operation that generated the exception- Returns:
- an exception
-