info.bliki.wiki.template.expr
Class SyntaxError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by info.bliki.wiki.template.expr.SyntaxError
All Implemented Interfaces:
java.io.Serializable

public class SyntaxError
extends java.lang.RuntimeException

Exception for a syntax error detected by the parser for a Mediawiki template expression.

See Also:
Serialized Form

Constructor Summary
SyntaxError(int startOffset, int rowIndx, int columnIndx, java.lang.String currentLine, java.lang.String error, int length)
          SyntaxError exception
 
Method Summary
 int getColumnIndex()
          column index where the error occurred (offset relative to rowIndex)
 java.lang.String getCurrentLine()
          source code line, where the error occurred
 java.lang.String getError()
          the error string
 int getLength()
          length of the error
 java.lang.String getMessage()
           
 int getRowIndex()
          row index where the error occurred
 int getStartOffset()
          offset where the error occurred
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyntaxError

public SyntaxError(int startOffset,
                   int rowIndx,
                   int columnIndx,
                   java.lang.String currentLine,
                   java.lang.String error,
                   int length)
SyntaxError exception

Parameters:
startOffset -
length -
See Also:
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getStartOffset

public int getStartOffset()
offset where the error occurred


getColumnIndex

public int getColumnIndex()
column index where the error occurred (offset relative to rowIndex)


getCurrentLine

public java.lang.String getCurrentLine()
source code line, where the error occurred


getError

public java.lang.String getError()
the error string


getLength

public int getLength()
length of the error


getRowIndex

public int getRowIndex()
row index where the error occurred



Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.