-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathZendeskResponseIdempotencyConflictException.java
More file actions
38 lines (32 loc) · 1.31 KB
/
ZendeskResponseIdempotencyConflictException.java
File metadata and controls
38 lines (32 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.zendesk.client.v2;
import java.io.IOException;
import org.asynchttpclient.Response;
/**
* Exception thrown when the Zendesk API returns an idempotency conflict error.
*
* <p>This exception is thrown when a request is retried with the same idempotency key but
* different request parameters. The API returns a 400 status code with
* {@code error: "IdempotentRequestError"} to indicate that the request parameters don't match the
* original request associated with the idempotency key.
*
* <p>To resolve this error, either use a new idempotency key or ensure the request parameters
* match the original request.
*
* @see <a href="https://developer.zendesk.com/api-reference/ticketing/introduction/#idempotency">
* Zendesk API Idempotency</a>
* @since 1.5.0
*/
public class ZendeskResponseIdempotencyConflictException extends ZendeskResponseException {
private static final long serialVersionUID = 1L;
public ZendeskResponseIdempotencyConflictException(Response res) throws IOException {
super(res);
}
public ZendeskResponseIdempotencyConflictException(
int statusCode, String statusText, String body) {
super(statusCode, statusText, body);
}
public ZendeskResponseIdempotencyConflictException(
ZendeskResponseIdempotencyConflictException cause) {
super(cause);
}
}