Package org.zendesk.client.v2
Class ZendeskResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.zendesk.client.v2.ZendeskException
-
- org.zendesk.client.v2.ZendeskResponseException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ZendeskResponseRateLimitException
public class ZendeskResponseException extends ZendeskException
ZendeskExceptionspecialisation for HTTP non-2xx responses- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZendeskResponseException(int statusCode, String statusText, String body)ZendeskResponseException(org.asynchttpclient.Response resp)ZendeskResponseException(ZendeskResponseException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()intgetStatusCode()StringgetStatusText()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ZendeskResponseException
public ZendeskResponseException(org.asynchttpclient.Response resp) throws IOException- Throws:
IOException
-
ZendeskResponseException
public ZendeskResponseException(int statusCode, String statusText, String body)
-
ZendeskResponseException
public ZendeskResponseException(ZendeskResponseException cause)
-
-