public static class AddonError.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AddonError |
build() |
AddonError.Builder |
code(String code)
A short error code that defines the upstream error, meant for programmatic parsing.
|
AddonError.Builder |
copy(AddonError model) |
AddonError.Builder |
message(String message)
A human-readable error string of the upstream error.
|
AddonError.Builder |
status(String status)
The status of the HTTP response encountered in the upstream error.
|
public AddonError.Builder code(String code)
A short error code that defines the upstream error, meant for programmatic parsing. See API Errors.
code
- the value to setpublic AddonError.Builder message(String message)
A human-readable error string of the upstream error.
message
- the value to setpublic AddonError.Builder status(String status)
The status of the HTTP response encountered in the upstream error.
status
- the value to setpublic AddonError build()
public AddonError.Builder copy(AddonError model)
Copyright © 2016–2024. All rights reserved.