Skip to content

Commit

Permalink
Remove redundant setDetail
Browse files Browse the repository at this point in the history
  • Loading branch information
souravroy committed Jan 10, 2024
1 parent ea2f547 commit dbc5dfd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public InvalidColumnException(String tableName, String columnName) {
private static ProblemDetail asProblemDetail(String message) {
ProblemDetail problemDetail = ProblemDetail.forStatusAndDetail(HttpStatus.BAD_REQUEST, message);
problemDetail.setTitle("Invalid Column Error");
problemDetail.setDetail(message);
problemDetail.setType(URI.create("https://github.com/kdhrubo/db2rest/invalid-column"));
problemDetail.setProperty("errorCategory", "Invalid-Column");
problemDetail.setProperty("timestamp", Instant.now());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public InvalidSchemaException(String schemaName) {
private static ProblemDetail asProblemDetail(String message) {
ProblemDetail problemDetail = ProblemDetail.forStatusAndDetail(HttpStatus.BAD_REQUEST, message);
problemDetail.setTitle("Invalid Schema Error");
problemDetail.setDetail(message);
problemDetail.setType(URI.create("https://github.com/kdhrubo/db2rest/invalid-schema"));
problemDetail.setProperty("errorCategory", "Invalid-Schema");
problemDetail.setProperty("timestamp", Instant.now());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public InvalidTableException(String tableName) {
private static ProblemDetail asProblemDetail(String message) {
ProblemDetail problemDetail = ProblemDetail.forStatusAndDetail(HttpStatus.BAD_REQUEST, message);
problemDetail.setTitle("Invalid Table Error");
problemDetail.setDetail(message);
problemDetail.setType(URI.create("https://github.com/kdhrubo/db2rest/invalid-table"));
problemDetail.setProperty("errorCategory", "Invalid-Table");
problemDetail.setProperty("timestamp", Instant.now());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public RpcException(String subRoutineName, Map<String, Object> inParams) {
private static ProblemDetail asProblemDetail(String message) {
ProblemDetail problemDetail = ProblemDetail.forStatusAndDetail(HttpStatus.BAD_REQUEST, message);
problemDetail.setTitle("Invalid Procedure/Function name or IN parameter mismatch");
problemDetail.setDetail(message);
problemDetail.setType(URI.create("https://github.com/kdhrubo/db2rest/invalid-subroutine-request"));
problemDetail.setProperty("errorCategory", "Invalid-SubRoutine-Request");
problemDetail.setProperty("timestamp", Instant.now());
Expand Down

0 comments on commit dbc5dfd

Please sign in to comment.