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