Commit d3a8a9ad authored by Greg Messner's avatar Greg Messner
Browse files

Added contructor that takes message and http status as params (#336).

parent 4f742512
...@@ -37,6 +37,18 @@ public class GitLabApiException extends Exception { ...@@ -37,6 +37,18 @@ public class GitLabApiException extends Exception {
this.message = 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. * Create a GitLabApiException instance based on the ClientResponse.
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment