Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.any23.extractor
Interface ErrorReporter

All Known Subinterfaces:
  ExtractionResult, TagSoupExtractionResult

All Known Implementing Classes:
  ExtractionResultImpl

    public interface ErrorReporter

This interface models an error reporter.

Author:
  Michele Mostarda (michele.mostarda@gmail.com)

Nested Class Summary
`static class` | `ErrorReporter.Error` This class defines a generic error traced by this extraction result.
`static class` | `ErrorReporter.ErrorLevel` Possible error levels.

Method Summary
`Collection<ErrorReporter.Error>` | `getErrors()` Returns all the collected errors.
`void` | `notifyError(ErrorReporter.ErrorLevel level, String msg, int row, int col)` Notifies an error occurred while performing an extraction on an input stream.
`void` | `printErrorsReport(PrintStream ps)` Prints out an errors report.

Method Detail

### notifyError

    void notifyError(ErrorReporter.ErrorLevel level,
                     String msg,
                     int row,
                     int col)

  Notifies an error occurred while performing an extraction on an input stream.

  Parameters:
    `level` - error level.
    `msg` - error message.
    `row` - error row.
    `col` - error column.

### printErrorsReport

    void printErrorsReport(PrintStream ps)

  Prints out an errors report.

  Parameters:
    `ps` -

### getErrors

    Collection<ErrorReporter.Error> getErrors()

  Returns all the collected errors.

  Returns:
    a collection of `ErrorReporter.Error`s.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.