public static class ResultError.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResultError.Builder |
action(String action)
The text describing the action required to fix the issue
|
ResultError |
build() |
ResultError.Builder |
code(String code)
A short error code that defines the error, meant for programmatic parsing.
|
ResultError.Builder |
copy(ResultError model) |
ResultError.Builder |
issue(String issue)
The text describing the root cause of the reported issue
|
ResultError.Builder |
message(String message)
A human-readable error string.
|
public ResultError.Builder code(String code)
A short error code that defines the error, meant for programmatic parsing.
code
- the value to setpublic ResultError.Builder message(String message)
A human-readable error string.
message
- the value to setpublic ResultError.Builder issue(String issue)
The text describing the root cause of the reported issue
issue
- the value to setpublic ResultError.Builder action(String action)
The text describing the action required to fix the issue
action
- the value to setpublic ResultError build()
public ResultError.Builder copy(ResultError model)
Copyright © 2016–2024. All rights reserved.