diff --git a/src/main/java/org/gitlab4j/api/GitLabApiException.java b/src/main/java/org/gitlab4j/api/GitLabApiException.java index 274f7dd1e8e7f82ac47be2a6501348dab3ccded0..a2ce107778514487897ace9e6d365cb45d20f1ad 100755 --- a/src/main/java/org/gitlab4j/api/GitLabApiException.java +++ b/src/main/java/org/gitlab4j/api/GitLabApiException.java @@ -37,6 +37,18 @@ public class GitLabApiException extends Exception { 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. *