apollo.exceptions.ApolloConfigStatusCodeException Maven / Gradle / Ivy
The newest version!
package apollo.exceptions;
/**
* @author Jason Song([email protected])
*/
public class ApolloConfigStatusCodeException extends RuntimeException{
private final int m_statusCode;
public ApolloConfigStatusCodeException(int statusCode, String message) {
super(String.format("[status code: %d] %s", statusCode, message));
this.m_statusCode = statusCode;
}
public ApolloConfigStatusCodeException(int statusCode, Throwable cause) {
super(cause);
this.m_statusCode = statusCode;
}
public int getStatusCode() {
return m_statusCode;
}
}