edu.cs.ai.kreator.exceptions
Interface ParsingErrorInfo

All Known Implementing Classes:
ParsingException, ParsingRuntimeException

public interface ParsingErrorInfo

An exception class implementing this interface can provide additional error information.

Author:
Marc Finthammer

Nested Class Summary
static class ParsingErrorInfo.ErrorType
           
 
Method Summary
 int getColumn()
          Returns the column in the line where the error occurred.
 ParsingErrorInfo.ErrorType getErrorType()
          Returns the type of the error.
 int getLine()
          Returns the line in the file where the error occurred.
 java.lang.String getParserErrorDescription()
          Returns an ANTLR generated description of the error.
 boolean isInfoAvailable()
          Returns whether additional error information (line, column, description, error type) is available.
 

Method Detail

getLine

int getLine()
Returns the line in the file where the error occurred.

Returns:
the line

getColumn

int getColumn()
Returns the column in the line where the error occurred.

Returns:
the column

getParserErrorDescription

java.lang.String getParserErrorDescription()
Returns an ANTLR generated description of the error.

Returns:
the parserErrorDescription

isInfoAvailable

boolean isInfoAvailable()
Returns whether additional error information (line, column, description, error type) is available.

Returns:
the infoAvailable

getErrorType

ParsingErrorInfo.ErrorType getErrorType()
Returns the type of the error.

Returns:
the errorType