Skip to content

Commit 7cdb819

Browse files
authored
(fix): reintroduce ApiError.java (#48)
1 parent 052ca5e commit 7cdb819

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)