All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.attributes.AttributeMappingException Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.attributes;

import static java.lang.String.format;

public class AttributeMappingException extends RuntimeException {
    private static final long serialVersionUID = 4954925590077093840L;

    public AttributeMappingException(final Throwable cause) {
        super(cause);
    }

    public  AttributeMappingException(final Object objectWithAttributes, final String attributeName, final AttributeMapper mapper, final Throwable cause) {
        super(format("%s does not contain an attribute '%s' which can be mapped with %s.", objectWithAttributes, attributeName, mapper), cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy