Changeset 7059
- Timestamp:
- 11/10/16 15:06:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/FCSQueryParser.java
r6935 r7059 76 76 final String rawQuery = parameters.get(PARAM_QUERY); 77 77 if (rawQuery == null) { 78 diagnostics.addDiagnostic(SRUConstants.SRU_GENERAL_SYSTEM_ERROR, 79 null, "no query passed to query parser"); 78 diagnostics.addDiagnostic( 79 SRUConstants.SRU_GENERAL_SYSTEM_ERROR, 80 null, 81 "No query passed to query parser."); 80 82 return null; 81 83 } … … 85 87 result = new FCSQuery(rawQuery, parsedQuery); 86 88 } catch (QueryParserException e) { 87 diagnostics.addDiagnostic(Constants.FCS_DIAGNOSTIC_GENERAL_QUERY_SYNTAX_ERROR, 88 null, e.getMessage()); 89 diagnostics.addDiagnostic( 90 Constants.FCS_DIAGNOSTIC_GENERAL_QUERY_SYNTAX_ERROR, 91 null, 92 e.getMessage()); 89 93 } catch (Exception e) { 90 diagnostics.addDiagnostic(SRUConstants.SRU_GENERAL_SYSTEM_ERROR, 91 null, "Unexpected error while parsing query."); 94 diagnostics.addDiagnostic( 95 SRUConstants.SRU_GENERAL_SYSTEM_ERROR, 96 null, 97 "Unexpected error while parsing query."); 92 98 } 93 99 return result;
Note: See TracChangeset
for help on using the changeset viewer.