Skip to content
GitLab
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
May 01, 2019
by
Greg Messner
Browse files
Added contructor that takes message and http status as params (#336).
parent
4f742512
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GitLabApiException.java
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.
*
*
...
...
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