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