Class ErrorResponse.Builder
- java.lang.Object
-
- org.apache.iceberg.rest.responses.ErrorResponse.Builder
-
- Enclosing class:
- ErrorResponse
public static class ErrorResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponse
build()
ErrorResponse.Builder
responseCode(java.lang.Integer responseCode)
ErrorResponse.Builder
withMessage(java.lang.String errorMessage)
ErrorResponse.Builder
withStackTrace(java.lang.Throwable throwable)
ErrorResponse.Builder
withStackTrace(java.util.List<java.lang.String> trace)
ErrorResponse.Builder
withType(java.lang.String errorType)
-
-
-
Method Detail
-
withMessage
public ErrorResponse.Builder withMessage(java.lang.String errorMessage)
-
withType
public ErrorResponse.Builder withType(java.lang.String errorType)
-
withStackTrace
public ErrorResponse.Builder withStackTrace(java.lang.Throwable throwable)
-
withStackTrace
public ErrorResponse.Builder withStackTrace(java.util.List<java.lang.String> trace)
-
responseCode
public ErrorResponse.Builder responseCode(java.lang.Integer responseCode)
-
build
public ErrorResponse build()
-
-