Package com.sonar.sslr.api
Class RecognitionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- 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
Constructors Constructor Description RecognitionException(int line, String message)
RecognitionException(int line, String message, Throwable cause)
RecognitionException(LexerException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getLine()
Line where the parsing error has occurred.boolean
isFatal()
Deprecated.in 1.19boolean
isToRetryWithExtendStackTrace()
Deprecated.in 1.19-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RecognitionException
public RecognitionException(LexerException e)
-
RecognitionException
public RecognitionException(int line, String message)
- 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
-
-