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

com.megaport.api.exceptions.ServiceUnavailableException Maven / Gradle / Ivy

The newest version!
package com.megaport.api.exceptions;

/**
 * This is effectively a wrapper for a 500 error
 * Created by adam.wells on 17/06/2016.
 */
public class ServiceUnavailableException extends RuntimeException{

    private Integer errorCode;
    private Integer httpResponseCode;

    public ServiceUnavailableException(String message, Integer httpResponseCode, Integer errorCode) {
        super(message);
        this.errorCode = errorCode;
        this.httpResponseCode = httpResponseCode;
    }

    public Integer getHttpResponseCode() {
        return httpResponseCode;
    }

    public void setHttpResponseCode(Integer httpResponseCode) {
        this.httpResponseCode = httpResponseCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy