public static class Storefront.CartUserError extends AbstractResponse<Storefront.CartUserError> implements Storefront.DisplayableError
optimisticData, responseData| Constructor and Description |
|---|
CartUserError() |
CartUserError(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.CartErrorCode |
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.CartUserError |
setCode(Storefront.CartErrorCode arg) |
Storefront.CartUserError |
setField(java.util.List<java.lang.String> arg) |
Storefront.CartUserError |
setMessage(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CartUserError()
public CartUserError(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.DisplayableErrorpublic Storefront.CartErrorCode getCode()
public Storefront.CartUserError setCode(Storefront.CartErrorCode arg)
public java.util.List<java.lang.String> getField()
getField in interface Storefront.DisplayableErrorpublic Storefront.CartUserError setField(java.util.List<java.lang.String> arg)
public java.lang.String getMessage()
getMessage in interface Storefront.DisplayableErrorpublic Storefront.CartUserError setMessage(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CartUserError>