Changeset 7059


Ignore:
Timestamp:
11/10/16 15:06:54 (8 years ago)
Author:
Oliver Schonefeld
Message:
  • source code formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/FCSQueryParser.java

    r6935 r7059  
    7676        final String rawQuery = parameters.get(PARAM_QUERY);
    7777        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.");
    8082            return null;
    8183        }
     
    8587            result = new FCSQuery(rawQuery, parsedQuery);
    8688        } 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());
    8993        } 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.");
    9298        }
    9399        return result;
Note: See TracChangeset for help on using the changeset viewer.