Interface GFFErrorHandler

All Known Implementing Classes:
GFFErrorHandler.AbortErrorHandler, GFFErrorHandler.SkipRecordErrorHandler

public interface GFFErrorHandler
Interface which captures any errors which occur when parsing a GFF stream. Providing a custom implementation of this interface allows intelligent recovery from errors when parsing GFF.

Each of these methods has three options:

  • Throw a ParserException. This need only contain a detail message, the parser will fill in other fields. parsing will be aborted.
  • Throw an IgnoreRecordException. This line of the GFF file will be ignored, but parsing will not be aborted
  • Return a value for the field.

Author:
Thomas Down, Matthew Pocock