Skip to content

Commit

Permalink
Added contructor that takes message and http status as params (#336).
Browse files Browse the repository at this point in the history
  • Loading branch information
gmessner committed May 2, 2019
1 parent 4f74251 commit d3a8a9a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/org/gitlab4j/api/GitLabApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ public GitLabApiException(String message) {
this.message = message;
}

/**
* Create a GitLabApiException instance with the specified message and HTTP status code.
*
* @param message the message for the exception
* @param httpStatus the HTTP status code for the exception
*/
public GitLabApiException(String message, int httpStatus) {
super(message);
this.message = message;
this.httpStatus = httpStatus;
}

/**
* Create a GitLabApiException instance based on the ClientResponse.
*
Expand Down

0 comments on commit d3a8a9a

Please sign in to comment.