public class SearchQueryErrorHandlerIgnore extends Object implements SearchQueryErrorHandler
SearchQueryErrorHandler
that simply ignores all errors.Constructor and Description |
---|
SearchQueryErrorHandlerIgnore()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handleError(String query,
int start,
int end,
NlsObject message)
This method is called if an error occurred during
query parsing . |
public SearchQueryErrorHandlerIgnore()
public void handleError(String query, int start, int end, NlsObject message) throws RuntimeException
query parsing
.handleError
in interface SearchQueryErrorHandler
query
- is the SearchQuery
to parse a String
.start
- is the start index
in query
where the error occurred.end
- is the end index
in query
where the error occurred.message
- is the actual error message.RuntimeException
- if the error should be thrown to the caller of the SearchQueryBuilder
.
If no exception is thrown the given message
is consumed and the
SearchQueryBuilder
continues the parsing.Copyright © 2001–2016 mmm-Team. All rights reserved.