public class GitLabApiException extends Exception
| Constructor and Description |
|---|
GitLabApiException(Exception e)
Create a GitLabApiException instance based on the exception.
|
GitLabApiException(javax.ws.rs.core.Response response)
Create a GitLabApiException instance based on the ClientResponse.
|
GitLabApiException(String message)
Create a GitLabApiException instance with the specified message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpStatus()
Returns the HTTP status code that was the cause of the exception.
|
String |
getMessage()
Get the message associated with the exception.
|
String |
getReason()
Returns the HTTP status reason message, returns null if the
causing error was not an HTTP related exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GitLabApiException(String message)
message - the message for the exceptionpublic GitLabApiException(javax.ws.rs.core.Response response)
response - the JAX-RS response that caused the exceptionpublic GitLabApiException(Exception e)
e - the Exception to wrappublic final String getMessage()
getMessage in class Throwablepublic final String getReason()
public final int getHttpStatus()
Copyright © 2017. All rights reserved.