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
RestClientException
public RestClientException(RestClientException exception)
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.
toString
public String toString()
- Overrides:
toString in class Throwable
Copyright © 2014 Atlassian. All Rights Reserved.