public class SearchQueryErrorHandlerFail extends Object implements SearchQueryErrorHandler
SearchQueryErrorHandler that throws an exception in case of any error.| Constructor and Description |
|---|
SearchQueryErrorHandlerFail()
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 SearchQueryErrorHandlerFail()
public void handleError(String query, int start, int end, NlsObject message) throws RuntimeException
query parsing.handleError in interface SearchQueryErrorHandlerquery - is the SearchQuery to parse a String.start - is the start index in querywhere the error occurred.end - is the end index in querywhere 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.