io.github.nichetoolkit.rest.RestErrorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-toolkit-core Show documentation
Show all versions of rest-toolkit-core Show documentation
Rest toolkit core project for Spring Boot
package io.github.nichetoolkit.rest;
import java.util.function.Supplier;
/**
* RestErrorException
* @author Cyan ([email protected])
* @version v1.0.0
*/
public class RestErrorException extends RestException {
public RestErrorException() {
super(RestErrorStatus.UNKNOWN_ERROR);
}
public RestErrorException(Supplier supplier) {
super(supplier.get());
}
public RestErrorException(RestStatus status) {
super(status);
}
public RestErrorException(RestErrorStatus status) {
super(status, RestError.error(status));
}
public RestErrorException(RestError error) {
super((RestStatus) error);
}
public RestErrorException(Integer status, RestError error) {
super(status, error);
}
public RestErrorException(String message, RestError error) {
super(message, error);
}
public RestErrorException(RestStatus status, RestError error) {
super(status, error);
}
public RestErrorException(RestError error, Throwable cause) {
super(error, cause);
}
public RestErrorException(Integer status, RestError error, Throwable cause) {
super(status, error, cause);
}
public RestErrorException(String message, RestError error, Throwable cause) {
super(message, error, cause);
}
public RestErrorException(RestStatus status, RestError error, Throwable cause) {
super(status, error, cause);
}
public RestErrorException(RestError error, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(error, cause, enableSuppression, writableStackTrace);
}
public RestErrorException(Integer status, RestError error, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(status, error, cause, enableSuppression, writableStackTrace);
}
public RestErrorException(String message, RestError error, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, error, cause, enableSuppression, writableStackTrace);
}
public RestErrorException(RestStatus status, RestError error, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(status, error, cause, enableSuppression, writableStackTrace);
}
@Override
public RestErrorException get() {
return new RestErrorException();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy