public static class ErrorDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ErrorDetails |
build() |
ErrorDetails.Builder |
code(String code)
A short error code that defines the error, meant for programmatic parsing.
|
ErrorDetails.Builder |
copy(ErrorDetails model) |
ErrorDetails.Builder |
message(String message)
A human-readable error string.
|
public ErrorDetails.Builder code(String code)
A short error code that defines the error, meant for programmatic parsing.
code
- the value to setpublic ErrorDetails.Builder message(String message)
A human-readable error string.
message
- the value to setpublic ErrorDetails build()
public ErrorDetails.Builder copy(ErrorDetails model)
Copyright © 2016–2024. All rights reserved.