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