public static class Storefront.CheckoutUserError extends <any> implements Storefront.DisplayableError
| Constructor and Description |
|---|
CheckoutUserError() |
CheckoutUserError(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.CheckoutErrorCode |
getCode()
Error code to uniquely identify the error.
|
java.util.List<java.lang.String> |
getField()
Path to the input field which 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) |
public 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)