
com.github.bingoohuang.springrest.boot.exception.RestException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-rest-boot Show documentation
Show all versions of spring-rest-boot Show documentation
convenient spring rest server on spring boot
package com.github.bingoohuang.springrest.boot.exception;
public class RestException extends RuntimeException {
private final int httpStatusCode;
public RestException(int httpStatusCode, String message) {
super(message);
this.httpStatusCode = httpStatusCode;
}
public RestException(int httpStatusCode, String message, Throwable cause) {
super(message, cause);
this.httpStatusCode = httpStatusCode;
}
public int getHttpStatusCode() {
return httpStatusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy