Implementation:Treeverse LakeFS Java SDK Model ObjectError
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing an error associated with an object operation in the lakeFS Java SDK.
Description
The ObjectError class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to object operation error fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when handling error responses from object operations through the lakeFS Java SDK API classes.
Code Reference
Source Location
- Repository: Treeverse_LakeFS
- File: clients/java/src/main/java/io/lakefs/clients/sdk/model/ObjectError.java
- Lines: 1-352
Signature
public class ObjectError {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.ObjectError;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| status_code | Integer | Yes | HTTP status code associated for operation on path |
| message | String | Yes | Error message describing the failure |
| path | String | No | Object path that caused the error |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation of the object |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.ObjectError;
ObjectError obj = new ObjectError();
obj.setStatusCode(404);
obj.setMessage("object not found");
obj.setPath("data/file.parquet");
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment