public class ParseException extends IllegalArgumentException
This exception is thrown when a condition, expression or query string, or any other string obeying some formal grammar, cannot be parsed for any reason (e.g., syntax error).
Constructor and Description |
---|
ParseException(String parsedString,
String message)
Creates a new instance with the parsed string and the optional error message specified.
|
ParseException(String parsedString,
String message,
Throwable cause)
Creates a new instance with the query, optional error message and cause specified.
|
Modifier and Type | Method and Description |
---|---|
String |
getParsedString()
Returns the parsed string.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(String parsedString, @Nullable String message)
parsedString
- a parsed string, for debugging purposesmessage
- an optional error message, to which the supplied query is concatenatedpublic ParseException(String parsedString, @Nullable String message, @Nullable Throwable cause)
parsedString
- a parsed string, for debugging purposesmessage
- an optional error message, to which the supplied parsed string is concatenatedcause
- the optional cause of this exceptionpublic final String getParsedString()
Copyright © 2015–2016 FBK-irst. All rights reserved.