public class SearchQueryErrorHandlerCollectErrorMessages extends Object implements SearchQueryErrorHandler
SearchQueryErrorHandler
that collects all errors
messages
.Constructor and Description |
---|
SearchQueryErrorHandlerCollectErrorMessages()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
List<NlsObject> |
getMessages()
|
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 SearchQueryErrorHandlerCollectErrorMessages()
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.