public static class ErrorResponse.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ErrorResponse |
build() |
ErrorResponse.Builder |
responseCode(java.lang.Integer responseCode) |
ErrorResponse.Builder |
withMessage(java.lang.String errorMessage) |
ErrorResponse.Builder |
withStackTrace(java.util.List<java.lang.String> trace) |
ErrorResponse.Builder |
withStackTrace(java.lang.Throwable throwable) |
ErrorResponse.Builder |
withType(java.lang.String errorType) |
public ErrorResponse.Builder withMessage(java.lang.String errorMessage)
public ErrorResponse.Builder withType(java.lang.String errorType)
public ErrorResponse.Builder withStackTrace(java.lang.Throwable throwable)
public ErrorResponse.Builder withStackTrace(java.util.List<java.lang.String> trace)
public ErrorResponse.Builder responseCode(java.lang.Integer responseCode)
public ErrorResponse build()