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:
- java.io.Serializable
public class RestClientException
- extends java.lang.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RestClientException
public RestClientException(RestClientException exception)
RestClientException
public RestClientException(java.lang.Throwable cause)
RestClientException
public RestClientException(java.lang.Throwable cause,
int statusCode)
RestClientException
public RestClientException(java.lang.String errorMessage,
java.lang.Throwable cause)
RestClientException
public RestClientException(java.util.Collection<ErrorCollection> errorCollections,
int statusCode)
RestClientException
public RestClientException(java.util.Collection<ErrorCollection> errorCollections,
java.lang.Throwable cause,
int statusCode)
getErrorCollections
public java.util.Collection<ErrorCollection> getErrorCollections()
- Returns:
- error messages used while building this exception object
getStatusCode
public com.google.common.base.Optional<java.lang.Integer> getStatusCode()
- Returns:
- optional error code of failed http request.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
Copyright © 2015 Atlassian. All Rights Reserved.