public static class Storefront.CheckoutUserError extends AbstractResponse<Storefront.CheckoutUserError> implements Storefront.DisplayableError
optimisticData, responseData| Constructor and Description |
|---|
CheckoutUserError() |
CheckoutUserError(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.CheckoutErrorCode |
getCode()
The error code.
|
java.util.List<java.lang.String> |
getField()
The path to the input field that caused the error.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getMessage()
The error message.
|
Storefront.CheckoutUserError |
setCode(Storefront.CheckoutErrorCode arg) |
Storefront.CheckoutUserError |
setField(java.util.List<java.lang.String> arg) |
Storefront.CheckoutUserError |
setMessage(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CheckoutUserError()
public CheckoutUserError(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.DisplayableErrorpublic Storefront.CheckoutErrorCode getCode()
public Storefront.CheckoutUserError setCode(Storefront.CheckoutErrorCode arg)
public java.util.List<java.lang.String> getField()
getField in interface Storefront.DisplayableErrorpublic Storefront.CheckoutUserError setField(java.util.List<java.lang.String> arg)
public java.lang.String getMessage()
getMessage in interface Storefront.DisplayableErrorpublic Storefront.CheckoutUserError setMessage(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CheckoutUserError>