Top Description Fields Constructors Methods
org.apache.avro

public Class AvroMissingFieldException

extends AvroRuntimeException
Class Inheritance
Imports
org.apache.avro.Schema.Field, java.util.ArrayList, .List

Avro exception in case of missing fields.

Field Summary

Modifier and TypeField and Description
private List<Schema.Field>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

chainOfFieldsback to summary
private List<Schema.Field> chainOfFields

Constructor Detail

AvroMissingFieldExceptionback to summary
public AvroMissingFieldException(String message, Schema.Field field)

Method Detail

addParentFieldback to summary
public void addParentField(Schema.Field field)
toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override