Skip to content

Commit 1aa9888

Browse files
Add comments
1 parent 0a16bf2 commit 1aa9888

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

databricks-sdk-java/src/main/java/com/databricks/sdk/core/error/ApiErrorBody.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ public void setApi12Error(String api12Error) {
9797
this.api12Error = api12Error;
9898
}
9999

100+
/**
101+
* Converts the error details to a list of ErrorDetail objects. This only supports the ErrorInfo
102+
* type.
103+
*
104+
* @param details The error details to convert.
105+
* @return A list of ErrorDetail objects.
106+
*/
100107
private static List<ErrorDetail> fromDetails(ErrorDetails details) {
101108
if (details == null) {
102109
return Collections.emptyList();

0 commit comments

Comments
 (0)