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