Package org.openscience.cdk.io
Interface IChemObjectReaderErrorHandler
- All Known Implementing Classes:
DefaultChemObjectReaderErrorHandler
public interface IChemObjectReaderErrorHandler
Interface for classes aimed to handle
IChemObjectReader errors. There
are two kinds of errors: normal errors, and fatal errors. Users of the readers
can opt to continue parsing the file (see IChemObjectReader.Mode. However, fatal errors
cannot be ignored, as the parser is not able to continue reading the file.
The user should immediately halt reading the file.- Author:
- Egon Willighagen <egonw@users.sf.net>
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(String message) Method that should react on an error message send by anIChemObjectReader.voidhandleError(String message, int row, int colStart, int colEnd) Method that should react on an error message send by anIChemObjectReader.voidhandleError(String message, int row, int colStart, int colEnd, Exception exception) Method that should react on an error message send by anIChemObjectReader.voidhandleError(String message, Exception exception) Method that should react on an error message send by anIChemObjectReader.voidhandleFatalError(String message) Method that should react on a fatal error message send by anIChemObjectReader.voidhandleFatalError(String message, int row, int colStart, int colEnd) Method that should react on a fatal error message send by anIChemObjectReader.voidhandleFatalError(String message, int row, int colStart, int colEnd, Exception exception) Method that should react on a fatal error message send by anIChemObjectReader.voidhandleFatalError(String message, Exception exception) Method that should react on a fatal error message send by anIChemObjectReader.
-
Method Details
-
handleError
Method that should react on an error message send by anIChemObjectReader.- Parameters:
message- Error found while reading.
-
handleError
Method that should react on an error message send by anIChemObjectReader.- Parameters:
message- Error found while reading.exception- Exception thrown while reading.
-
handleError
Method that should react on an error message send by anIChemObjectReader.- Parameters:
message- Error found while reading.row- Row in the file where the error is found.colStart- Start column in the file where the error is found.colEnd- End column in the file where the error is found.
-
handleError
Method that should react on an error message send by anIChemObjectReader.- Parameters:
message- Error found while reading.exception- Exception thrown while reading.colStart- Start column in the file where the error is found.colEnd- End column in the file where the error is found.
-
handleFatalError
Method that should react on a fatal error message send by anIChemObjectReader. This error is fatal, and the state of reading is no longer defined.- Parameters:
message- Error found while reading.
-
handleFatalError
Method that should react on a fatal error message send by anIChemObjectReader. This error is fatal, and the state of reading is no longer defined.- Parameters:
message- Error found while reading.exception- Exception thrown while reading.
-
handleFatalError
Method that should react on a fatal error message send by anIChemObjectReader. This error is fatal, and the state of reading is no longer defined.- Parameters:
message- Error found while reading.row- Row in the file where the fatal error is found.colStart- Start column in the file where the fatal error is found.colEnd- End column in the file where the fatal error is found.
-
handleFatalError
Method that should react on a fatal error message send by anIChemObjectReader. This error is fatal, and the state of reading is no longer defined.- Parameters:
message- Error found while reading.exception- Exception thrown while reading.colStart- Start column in the file where the fatal error is found.colEnd- End column in the file where the fatal error is found.
-