Class ErrorResponse
- java.lang.Object
-
- org.apache.iceberg.rest.responses.ErrorResponse
-
- All Implemented Interfaces:
RESTMessage
,RESTResponse
public class ErrorResponse extends java.lang.Object implements RESTResponse
Standard response body for all API errors
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ErrorResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorResponse.Builder
builder()
java.lang.Integer
code()
java.lang.String
message()
java.util.List<java.lang.String>
stack()
java.lang.String
toString()
java.lang.String
type()
void
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
-
-
Method Detail
-
validate
public void validate()
Description copied from interface:RESTMessage
Ensures that a constructed instance of a REST message is valid according to the REST spec.This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Specified by:
validate
in interfaceRESTMessage
-
message
public java.lang.String message()
-
type
public java.lang.String type()
-
code
public java.lang.Integer code()
-
stack
public java.util.List<java.lang.String> stack()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static ErrorResponse.Builder builder()
-
-