org.openscience.cdk.io
Interface IChemObjectReaderErrorHandler


public interface IChemObjectReaderErrorHandler

Interface for classes aimed to handle IChemObjectReader errors.

Author:
Egon Willighagen
Belongs to CDK module:
io
Source code:
cdk-1.4.x

Method Summary
 void handleError(String message)
          Method that should react on an error message send by an IChemObjectReader.
 void handleError(String message, Exception exception)
          Method that should react on an error message send by an IChemObjectReader.
 void handleError(String message, int row, int colStart, int colEnd)
          Method that should react on an error message send by an IChemObjectReader.
 void handleError(String message, int row, int colStart, int colEnd, Exception exception)
          Method that should react on an error message send by an IChemObjectReader.
 

Method Detail

handleError

void handleError(String message)
Method that should react on an error message send by an IChemObjectReader.

Parameters:
message - Error found while reading.

handleError

void handleError(String message,
                 Exception exception)
Method that should react on an error message send by an IChemObjectReader.

Parameters:
message - Error found while reading.
exception - Exception thrown while reading.

handleError

void handleError(String message,
                 int row,
                 int colStart,
                 int colEnd)
Method that should react on an error message send by an IChemObjectReader.

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

void handleError(String message,
                 int row,
                 int colStart,
                 int colEnd,
                 Exception exception)
Method that should react on an error message send by an IChemObjectReader.

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.