Class ErrorResponseParser
- java.lang.Object
-
- org.apache.iceberg.rest.responses.ErrorResponseParser
-
public class ErrorResponseParser extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorResponse
fromJson(com.fasterxml.jackson.databind.JsonNode jsonNode)
static ErrorResponse
fromJson(java.lang.String json)
Read ErrorResponse from a JSON string.static java.lang.String
toJson(ErrorResponse errorResponse)
static java.lang.String
toJson(ErrorResponse errorResponse, boolean pretty)
static void
toJson(ErrorResponse errorResponse, com.fasterxml.jackson.core.JsonGenerator generator)
-
-
-
Method Detail
-
toJson
public static java.lang.String toJson(ErrorResponse errorResponse)
-
toJson
public static java.lang.String toJson(ErrorResponse errorResponse, boolean pretty)
-
toJson
public static void toJson(ErrorResponse errorResponse, com.fasterxml.jackson.core.JsonGenerator generator) throws java.io.IOException
- Throws:
java.io.IOException
-
fromJson
public static ErrorResponse fromJson(java.lang.String json)
Read ErrorResponse from a JSON string.- Parameters:
json
- a JSON string of an ErrorResponse- Returns:
- an ErrorResponse object
-
fromJson
public static ErrorResponse fromJson(com.fasterxml.jackson.databind.JsonNode jsonNode)
-
-