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

io.sphere.sdk.client.SphereException Maven / Gradle / Ivy

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

/** Exception thrown when a Sphere web service responds with a status code other than HTTP 2xx.
 *
 *  The subclasses of this class are specific exceptions in the {@code io.sphere.client.exceptions} package,
 *  and the generic {@link SphereBackendException}. */
public class SphereException extends SphereClientException {
    private static final long serialVersionUID = 0L;

    protected SphereException() {}

    public SphereException(String message) {
        super(message);
    }

    public SphereException(String message, Throwable cause) {
        super(message + ": " + cause.getMessage(), cause);
    }

    public SphereException(Throwable cause) {
        this(cause.getMessage(), cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy