Skip to content

Commit

Permalink
Change exception base class to hold response id. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jan 2, 2018
1 parent b5bbbbd commit 967496d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/bunq/sdk/exception/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@
public class ApiException extends RuntimeException {

private int responseCode;
private String responseId;

public ApiException(String message, int responseCode) {
public ApiException(String message, int responseCode, String responseId) {
super(message);

this.responseCode = responseCode;
this.responseId = responseId;
}

public int getResponseCode() {
return responseCode;
}

public String getResponseId() {
return responseId;
}

}

0 comments on commit 967496d

Please sign in to comment.