Serializable
public class GitLabApiException extends Exception
Constructor | Description |
---|---|
GitLabApiException(Exception e) |
Create a GitLabApiException instance based on the exception.
|
GitLabApiException(String message) |
Create a GitLabApiException instance with the specified message.
|
GitLabApiException(javax.ws.rs.core.Response response) |
Create a GitLabApiException instance based on the ClientResponse.
|
Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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 Throwable
public final String getReason()
public final int getHttpStatus()
Copyright © 2018. All rights reserved.