Class SearchParseError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openstreetmap.josm.data.osm.search.SearchParseError
-
- All Implemented Interfaces:
Serializable
public class SearchParseError extends Exception
Search compiler parsing error.- Since:
- 12656 (extracted from
SearchCompiler
). - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SearchParseError(String msg)
Constructs a new genericParseError
.SearchParseError(String msg, Throwable cause)
Constructs a new genericParseError
.SearchParseError(PushbackTokenizer.Token expected, PushbackTokenizer.Token found)
Constructs a new detailedParseError
.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SearchParseError
public SearchParseError(String msg)
Constructs a new genericParseError
.- Parameters:
msg
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
SearchParseError
public SearchParseError(String msg, Throwable cause)
Constructs a new genericParseError
.- Parameters:
msg
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
SearchParseError
public SearchParseError(PushbackTokenizer.Token expected, PushbackTokenizer.Token found)
Constructs a new detailedParseError
.- Parameters:
expected
- expected tokenfound
- actual token
-
-