Skip to content

Commit cf61d22

Browse files
committed
feat: update ApiException tostring
1 parent 29bd79b commit cf61d22

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)