-
Notifications
You must be signed in to change notification settings - Fork 400
Expand file tree
/
Copy pathControlledByDashboardException.java
More file actions
37 lines (32 loc) · 1.41 KB
/
ControlledByDashboardException.java
File metadata and controls
37 lines (32 loc) · 1.41 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
// File generated from our OpenAPI spec
package com.stripe.exception;
import com.google.gson.JsonObject;
import com.stripe.model.StripeError;
import com.stripe.model.StripeObject;
import com.stripe.net.StripeResponseGetter;
/**
* Returned when the PayoutMethodBankAccount object is controlled by the Stripe Dashboard, and
* cannot be archived.
*/
public final class ControlledByDashboardException extends ApiException {
private static final long serialVersionUID = 2L;
private ControlledByDashboardException(
String message, String requestId, String code, Integer statusCode, Throwable e) {
super(message, requestId, code, statusCode, e);
}
static ControlledByDashboardException parse(
JsonObject body, int statusCode, String requestId, StripeResponseGetter responseGetter) {
ControlledByDashboardException.ControlledByDashboardError error =
(ControlledByDashboardException.ControlledByDashboardError)
StripeObject.deserializeStripeObject(
body,
ControlledByDashboardException.ControlledByDashboardError.class,
responseGetter);
ControlledByDashboardException exception =
new ControlledByDashboardException(
error.getMessage(), requestId, error.getCode(), statusCode, null);
exception.setStripeError(error);
return exception;
}
public static class ControlledByDashboardError extends StripeError {}
}