Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
manan164 committed Nov 21, 2023
1 parent 129896c commit f72dcba
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package com.netflix.conductor.common.validation;

import java.util.List;
import java.util.Map;

public class ErrorResponse {

Expand All @@ -23,6 +24,16 @@ public class ErrorResponse {
private boolean retryable;
private List<ValidationError> validationErrors;

private Map<String, Object> metadata;

public Map<String, Object> getMetadata() {
return metadata;
}

public void setMetadata(Map<String, Object> metadata) {
this.metadata = metadata;
}

public int getStatus() {
return status;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ public int getStatusCode() {
}
}

public Map<String, Object> getMetadata() {
return metadata;
}

public void setMetadata(Map<String, Object> metadata) {
this.metadata = metadata;
}

private Map<String, Object> metadata;

private final Code code;

public boolean isRetryable() {
Expand All @@ -64,6 +74,12 @@ public ApplicationException(Code code, String message) {
this.code = code;
}

public ApplicationException(Code code, String message, Map<String, Object> metadata) {
super(message);
this.code = code;
this.metadata = metadata;
}

public int getHttpStatusCode() {
return this.code.getStatusCode();
}
Expand Down

0 comments on commit f72dcba

Please sign in to comment.