-
Notifications
You must be signed in to change notification settings - Fork 400
Expand file tree
/
Copy pathFinancialAccountNotOpenException.java
More file actions
33 lines (28 loc) · 1.31 KB
/
FinancialAccountNotOpenException.java
File metadata and controls
33 lines (28 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
// 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;
public final class FinancialAccountNotOpenException extends ApiException {
private static final long serialVersionUID = 2L;
private FinancialAccountNotOpenException(
String message, String requestId, String code, Integer statusCode, Throwable e) {
super(message, requestId, code, statusCode, e);
}
static FinancialAccountNotOpenException parse(
JsonObject body, int statusCode, String requestId, StripeResponseGetter responseGetter) {
FinancialAccountNotOpenException.FinancialAccountNotOpenError error =
(FinancialAccountNotOpenException.FinancialAccountNotOpenError)
StripeObject.deserializeStripeObject(
body,
FinancialAccountNotOpenException.FinancialAccountNotOpenError.class,
responseGetter);
FinancialAccountNotOpenException exception =
new FinancialAccountNotOpenException(
error.getMessage(), requestId, error.getCode(), statusCode, null);
exception.setStripeError(error);
return exception;
}
public static class FinancialAccountNotOpenError extends StripeError {}
}