Skip to content

Commit 6bbf754

Browse files
authored
(fix): reintroduce ApiError.java and bump version to 1.0.14 (#50)
1 parent c960646 commit 6bbf754

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.fernignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
README.md
44
LICENSE.md
5+
6+
src/main/java/com/merge/api/core/ApiError.java

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ publishing {
4646
maven(MavenPublication) {
4747
groupId = 'dev.merge'
4848
artifactId = 'merge-java-client'
49-
version = 'v1.0.13'
49+
version = 'v1.0.14'
5050
from components.java
5151
pom {
5252
scm {
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)