databricks-sdk-java
databricks-sdk-java copied to clipboard
[ISSUE] Error parsing Databricks Error #260
Issue Description
Exceptions are not deserialized correctly, the message field contains the response JSON and the string 'Cannot construct instance of com.databricks.sdk.core.error.ErrorDetail, problem: Cannot invoke "Object.getClass()" because "m" is null'
Changes
In ErrorDetails class, i added a null check before the unmodifiableMap is created.
Tests
Created an unit test in ApiErrorBodyDeserializationSuite.java