![JAR search and dependency download from the Maven repository](/logo.png)
com.txxs.common.response.exception.SpecificHttpStatusException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-response Show documentation
Show all versions of common-response Show documentation
handle message standard when send to front
The newest version!
package com.txxs.common.response.exception;
import org.springframework.http.HttpStatus;
/**
* @Author:jianghuimin
* @Date: 2017/8/3
* @Time:17:00
*/
public final class SpecificHttpStatusException extends UniversalException {
private String code;
private HttpStatus httpStatus;
public SpecificHttpStatusException(HttpStatus httpStatus) {
this.httpStatus = httpStatus;
this.code = this.parseToCode(httpStatus);
}
public SpecificHttpStatusException(HttpStatus httpStatus, String message) {
super(message);
this.httpStatus = httpStatus;
this.code = this.parseToCode(httpStatus);
}
public String getCode() {
return this.code;
}
public HttpStatus getHttpStatus() {
return this.httpStatus;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy