
org.twonote.rgwadmin4j.impl.RgwAdminException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of radosgw-admin4j Show documentation
Show all versions of radosgw-admin4j Show documentation
A Ceph Object Storage Admin SDK / Client Library for Java
package org.twonote.rgwadmin4j.impl;
/**
* Represents Radosgw admin errors
*
* Created by petertc on 3/24/17.
*/
@SuppressWarnings("SameParameterValue")
public class RgwAdminException extends RuntimeException {
private final int statusCode;
public RgwAdminException(int statusCode) {
this.statusCode = statusCode;
}
public RgwAdminException(int statusCode, String messageCode) {
super(messageCode);
this.statusCode = statusCode;
}
public RgwAdminException(int statusCode, String messageCode, Throwable cause) {
super(messageCode, cause);
this.statusCode = statusCode;
}
public int status() {
return statusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy