Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
d3a8a9ad
Commit
d3a8a9ad
authored
6 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Added contructor that takes message and http status as params (#336).
parent
4f742512
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/gitlab4j/api/GitLabApiException.java
+12
-0
src/main/java/org/gitlab4j/api/GitLabApiException.java
with
12 additions
and
0 deletions
+12
-0
src/main/java/org/gitlab4j/api/GitLabApiException.java
+
12
-
0
View file @
d3a8a9ad
...
@@ -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.
*
*
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets