Skip to content

Commit

Permalink
Refactored exception classes to match the new base class. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jan 2, 2018
1 parent 967496d commit 5bc0b34
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/bunq/sdk/exception/BadRequestException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class BadRequestException extends ApiException {

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

}
4 changes: 2 additions & 2 deletions src/main/java/com/bunq/sdk/exception/ForbiddenException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class ForbiddenException extends ApiException {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class MethodNotAllowedException extends ApiException {

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

}
4 changes: 2 additions & 2 deletions src/main/java/com/bunq/sdk/exception/NotFoundException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class NotFoundException extends ApiException {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class PleaseContactBunqException extends ApiException {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class TooManyRequestsException extends ApiException {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class UnauthorizedException extends ApiException {

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

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package com.bunq.sdk.exception;


public class UnknownApiErrorException extends ApiException {

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

}

0 comments on commit 5bc0b34

Please sign in to comment.