Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #954 from Graylog2/947-parse-errors
Fix error handling for search errors
- Loading branch information
Showing
8 changed files
with
89 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...st-client/src/main/java/org/graylog2/restclient/models/api/responses/QueryParseError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.graylog2.restclient.models.api.responses; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public class QueryParseError { | ||
@JsonProperty("query") | ||
public String query; | ||
|
||
@JsonProperty("message") | ||
@Nullable | ||
public String message; | ||
|
||
@JsonProperty("begin_column") | ||
@Nullable | ||
public Integer beginColumn; | ||
|
||
@JsonProperty("begin_line") | ||
@Nullable | ||
public Integer beginLine; | ||
|
||
@JsonProperty("end_column") | ||
@Nullable | ||
public Integer endColumn; | ||
|
||
@JsonProperty("end_line") | ||
@Nullable | ||
public Integer endLine; | ||
|
||
@JsonProperty("exception_name") | ||
public String exceptionName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
graylog2-server/src/main/java/org/graylog2/rest/resources/search/responses/GenericError.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters