
com.megaport.api.exceptions.ServiceUnavailableException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
This library is a Java wrapper for the Megaport API.
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