We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f74251 commit d3a8a9aCopy full SHA for d3a8a9a
src/main/java/org/gitlab4j/api/GitLabApiException.java
@@ -37,6 +37,18 @@ public GitLabApiException(String message) {
37
this.message = message;
38
}
39
40
+ /**
41
+ * Create a GitLabApiException instance with the specified message and HTTP status code.
42
+ *
43
+ * @param message the message for the exception
44
+ * @param httpStatus the HTTP status code for the exception
45
+ */
46
+ public GitLabApiException(String message, int httpStatus) {
47
+ super(message);
48
+ this.message = message;
49
+ this.httpStatus = httpStatus;
50
+ }
51
+
52
/**
53
* Create a GitLabApiException instance based on the ClientResponse.
54
*
0 commit comments