public abstract class ErrorInfo extends Object
This class provides structured information about what went wrong, including:
This information can be used by clients to:
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorInfo.Builder
Builder for constructing ErrorInfo instances.
|
| Constructor and Description |
|---|
ErrorInfo() |
| Modifier and Type | Method and Description |
|---|---|
static ErrorInfo.Builder |
builder()
Creates a new builder for constructing ErrorInfo instances.
|
abstract String |
domain()
The logical grouping to which the "reason" belongs.
|
abstract Map<String,String> |
metadata()
Additional structured details about this error.
|
abstract String |
reason()
The reason of the error.
|
public abstract String reason()
Examples might include: "INVALID_ARGUMENT", "RESOURCE_NOT_FOUND", "PERMISSION_DENIED", etc.
public abstract String domain()
This provides context about the domain or category of the error. Examples might include: "databricks.api", "databricks.auth", etc.
public abstract Map<String,String> metadata()
This map can contain arbitrary key-value pairs that provide additional context about the error. The exact contents depend on the specific error type and the service implementation.
public static ErrorInfo.Builder builder()
Copyright © 2026. All rights reserved.