Skip to content

Commit

Permalink
Address PR feedback.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
  • Loading branch information
Yury-Fridlyand committed Sep 13, 2022
1 parent 9b0e4c9 commit 8423187
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

package org.opensearch.sql.legacy.executor.format;

import lombok.Getter;
import lombok.Setter;
import org.json.JSONObject;
import org.opensearch.rest.RestStatus;
Expand All @@ -18,12 +19,9 @@ public class ErrorMessage<E extends Exception> {
private String type;
private String reason;
@Setter
@Getter
private String details;

public String getDetails() {
return details;
}

public ErrorMessage(E exception, int status) {
this.exception = exception;
this.status = status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private void sendResponse(final RestChannel channel, final String message, final

/**
* Report Error message to user.
* @param channel : Rest channel to sent response through.
* @param channel : Rest channel to send response through.
* @param e : Exception caught when attempting query.
* @param status : Status for rest request made.
*/
Expand Down

0 comments on commit 8423187

Please sign in to comment.