@Value.Immutable public abstract class ApiError extends Object
ErrorResponseException
Modifier and Type | Class and Description |
---|---|
static class |
ApiError.Code
A collection of known error codes.
|
Constructor and Description |
---|
ApiError() |
Modifier and Type | Method and Description |
---|---|
abstract String |
code()
The machine readable error code.
|
static ApiError |
of(String code,
String text)
Creates a new API error object from the given code and text.
|
abstract String |
text()
The human readable error message.
|
Copyright © 2016–2019 CLX Communications. All rights reserved.