com.dft.api.shopify.exceptions.ShopifyErrorCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shopify-admin-rest Show documentation
Show all versions of shopify-admin-rest Show documentation
Shopify Admin REST API using JDK 11 and Reactive Programming
package com.dft.api.shopify.exceptions;
import java.io.Serializable;
public class ShopifyErrorCode implements Serializable {
private static final long serialVersionUID = -3870975240510101019L;
public enum Type implements Serializable {
SHIPPING_ADDRESS, UNKNOWN
}
private final Type type;
private final String message;
public ShopifyErrorCode(final Type type, final String message) {
this.type = type;
this.message = message;
}
public Type getType() {
return type;
}
public String getMessage() {
return message;
}
}