com.atlassian.jira.rest.client.api
Class RestClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
RestClientException(java.util.Collection<ErrorCollection> errorCollections, int statusCode)
           
RestClientException(java.util.Collection<ErrorCollection> errorCollections, java.lang.Throwable cause, int statusCode)
           
RestClientException(RestClientException exception)
           
RestClientException(java.lang.String errorMessage, java.lang.Throwable cause)
           
RestClientException(java.lang.Throwable cause)
           
RestClientException(java.lang.Throwable cause, int statusCode)
           
 
Method Summary
 java.util.Collection<ErrorCollection> getErrorCollections()
           
 com.google.common.base.Optional<java.lang.Integer> getStatusCode()
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

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)
Method Detail

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.