com.atlassian.jira.rest.client
Class RestClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
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(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
getErrorMessages
public Iterable<String> getErrorMessages()
- Returns:
- error messages used while building this exception object
Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.