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

com.github.davidmoten.aws.lw.client.ServiceException Maven / Gradle / Ivy

Go to download

Lightweight client for all AWS services (but still with useful builders and XML parser)

The newest version!
package com.github.davidmoten.aws.lw.client;

public final class ServiceException extends RuntimeException {

    private static final long serialVersionUID = -6963816822115090962L;
    private final int statusCode;
    private final String message;

    public ServiceException(int statusCode, String message) {
        super("statusCode=" + statusCode + ": " + message);
        this.statusCode = statusCode;
        this.message = message;
    }

    public int statusCode() {
        return statusCode;
    }

    public String message() {
        return message;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy