com.atlassian.jira.rest.client
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.RestClientException
All Implemented Interfaces:
Serializable

public class RestClientException
extends RuntimeException

Basic exception which may be thrown by any remote operation encapsulated by the REST client. Usually some more specific exception will be chained here and available via Throwable.getCause()

Since:
v0.1
See Also:
Serialized Form

Constructor Summary
RestClientException(Collection<String> errorMessages, Throwable cause)
           
RestClientException(String errorMessage, Throwable cause)
           
RestClientException(Throwable cause)
           
 
Method Summary
 Iterable<String> getErrorMessages()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestClientException

public RestClientException(Throwable cause)

RestClientException

public RestClientException(String errorMessage,
                           Throwable cause)

RestClientException

public RestClientException(Collection<String> errorMessages,
                           Throwable cause)
Parameters:
errorMessages - messages which will be joined with newline character and accessible then via Throwable.getMessage()
cause - the cause of this exception or null
Method Detail

getErrorMessages

public Iterable<String> getErrorMessages()
Returns:
error messages used while building this exception object


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.