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 user-friendly error message.
|
public ErrorDetails.Builder code(String code)
A short error code that defines the error, meant for programmatic parsing. See API Errors.
code
- the value to setpublic ErrorDetails.Builder message(String message)
A user-friendly error message.
message
- the value to setpublic ErrorDetails build()
public ErrorDetails.Builder copy(ErrorDetails model)
Copyright © 2016–2024. All rights reserved.