com.sonar.sslr.api
Class RecognitionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sonar.sslr.api.RecognitionException
All Implemented Interfaces:
Serializable

public class RecognitionException
extends RuntimeException

This class is not intended to be instantiated or subclassed by clients.

See Also:
Serialized Form

Constructor Summary
RecognitionException(int line, String message)
           
RecognitionException(int line, String message, Throwable cause)
           
RecognitionException(LexerException e)
           
 
Method Summary
 int getLine()
          Line where the parsing error has occurred.
 boolean isFatal()
          Deprecated. in 1.19
 boolean isToRetryWithExtendStackTrace()
          Deprecated. in 1.19
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

RecognitionException

public RecognitionException(LexerException e)

RecognitionException

public RecognitionException(int line,
                            String message)
Since:
1.16

RecognitionException

public RecognitionException(int line,
                            String message,
                            Throwable cause)
Since:
1.16
Method Detail

getLine

public int getLine()
Line where the parsing error has occurred.

Returns:
line

isToRetryWithExtendStackTrace

@Deprecated
public boolean isToRetryWithExtendStackTrace()
Deprecated. in 1.19


isFatal

@Deprecated
public boolean isFatal()
Deprecated. in 1.19



Copyright © 2009-2014 SonarSource. All Rights Reserved.