public class SearchQueryErrorHandlerCollectErrors extends Object implements SearchQueryErrorHandler
SearchQueryErrorHandler
that collects all errors.Modifier and Type | Class and Description |
---|---|
static class |
SearchQueryErrorHandlerCollectErrors.Error
This inner class represents an
error event . |
Constructor and Description |
---|
SearchQueryErrorHandlerCollectErrors()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
List<NlsObject> |
getMessages()
This method gets the collected
messages . |
void |
handleError(String query,
int start,
int end,
NlsObject message)
This method is called if an error occurred during
query parsing . |
private final List<NlsObject> messages
getMessages()
public SearchQueryErrorHandlerCollectErrors()
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.