We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ApiError.java
1 parent 052ca5e commit 7cdb819Copy full SHA for 7cdb819
src/main/java/com/merge/api/core/ApiError.java
@@ -0,0 +1,28 @@
1
+/**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+package com.merge.api.core;
5
+
6
+public final class ApiError extends RuntimeException {
7
+ private final int statusCode;
8
9
+ private final Object body;
10
11
+ public ApiError(int statusCode, Object body) {
12
+ this.statusCode = statusCode;
13
+ this.body = body;
14
+ }
15
16
+ public int statusCode() {
17
+ return this.statusCode;
18
19
20
+ public Object body() {
21
+ return this.body;
22
23
24
+ @java.lang.Override
25
+ public String toString() {
26
+ return "ApiError{" + "statusCode: " + statusCode + ", body: " + body + "}";
27
28
+}
0 commit comments