Skip to content

Commit e2dbc49

Browse files
committed
feat: update ApiException tostring
1 parent e3fc0f3 commit e2dbc49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

volcengine-java-sdk-core/src/main/java/com/volcengine/ApiException.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,12 @@ public Map<String, List<String>> getResponseHeaders() {
8686
public String getResponseBody() {
8787
return responseBody;
8888
}
89+
90+
91+
@Override
92+
public String toString() {
93+
String s = getClass().getName();
94+
String message = responseBody;
95+
return (message != null) ? (s + ": " + message) : s;
96+
}
8997
}

0 commit comments

Comments
 (0)