com.atlassian.jira.rest.client.api
Class RestClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.jira.rest.client.api.RestClientException
- All Implemented Interfaces:
- Serializable
public class RestClientException
- extends RuntimeException
Basic exception which may be thrown by any remote operation encapsulated by the REST com.atlassian.jira.rest.client.api.
Usually some more specific exception will be chained here and available via Throwable.getCause()
- Since:
- v0.1
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
RestClientException
public RestClientException(Throwable cause)
RestClientException
public RestClientException(Throwable cause,
int statusCode)
RestClientException
public RestClientException(String errorMessage,
Throwable cause)
RestClientException
public RestClientException(Collection<ErrorCollection> errorCollections,
int statusCode)
RestClientException
public RestClientException(Collection<ErrorCollection> errorCollections,
Throwable cause,
int statusCode)
getErrorCollections
public Collection<ErrorCollection> getErrorCollections()
- Returns:
- error messages used while building this exception object
getStatusCode
public com.google.common.base.Optional<Integer> getStatusCode()
- Returns:
- optional error code of failed http request.
Copyright © 2013 Atlassian. All Rights Reserved.