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