Class ErrorResponse

java.lang.Object
org.apache.iceberg.rest.responses.ErrorResponse
All Implemented Interfaces:
RESTMessage, RESTResponse

public class ErrorResponse extends Object implements RESTResponse
Standard response body for all API errors
  • Method Details

    • 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 interface RESTMessage
    • message

      public String message()
    • type

      public String type()
    • code

      public Integer code()
    • stack

      public List<String> stack()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ErrorResponse.Builder builder()