Update YamiShopBindException.java

cyj
pbvfus8to 8 months ago
parent 88efae9389
commit 80f2713f57

@ -15,51 +15,106 @@ import com.yami.shop.common.response.ServerResponseEntity;
import lombok.Getter;
/**
* `YamiShopBindException`
* `RuntimeException` `throws`
* 便便
*
* @author lanhai
*/
@Getter
public class YamiShopBindException extends RuntimeException{
/**
*
*/
private static final long serialVersionUID = -4137688758944857209L;
public class YamiShopBindException extends RuntimeException {
/**
* http
*/
private String code;
/**
*
*
*
*/
private static final long serialVersionUID = -4137688758944857209L;
private Object object;
/**
* HTTP HTTP
* 便
*
*/
private String code;
private ServerResponseEntity<?> serverResponseEntity;
/**
*
* 便
*/
private Object object;
public YamiShopBindException(ResponseEnum responseEnum) {
super(responseEnum.getMsg());
this.code = responseEnum.value();
}
/**
* @param responseEnum
*/
public YamiShopBindException(ResponseEnum responseEnum, String msg) {
super(msg);
this.code = responseEnum.value();
}
/**
* `ServerResponseEntity` `ServerResponseEntity`
*
*
*/
private ServerResponseEntity<?> serverResponseEntity;
public YamiShopBindException(ServerResponseEntity<?> serverResponseEntity) {
this.serverResponseEntity = serverResponseEntity;
}
/**
* `ResponseEnum`
* `RuntimeException` `ResponseEnum` `getMsg()`
* `ResponseEnum` `value()` HTTP `code`
*
*
* @param responseEnum
*/
public YamiShopBindException(ResponseEnum responseEnum) {
super(responseEnum.getMsg());
this.code = responseEnum.value();
}
/**
* `ResponseEnum`
* `RuntimeException` `msg`
* `ResponseEnum` `value()` HTTP `code`
*
*
* @param responseEnum `code`
* @param msg `RuntimeException`
*/
public YamiShopBindException(ResponseEnum responseEnum, String msg) {
super(msg);
this.code = responseEnum.value();
}
public YamiShopBindException(String msg) {
super(msg);
this.code = ResponseEnum.SHOW_FAIL.value();
}
/**
* `ServerResponseEntity`
* `ServerResponseEntity` `serverResponseEntity`
* 便使
*
* @param serverResponseEntity `serverResponseEntity`
*/
public YamiShopBindException(ServerResponseEntity<?> serverResponseEntity) {
this.serverResponseEntity = serverResponseEntity;
}
public YamiShopBindException(String msg, Object object) {
super(msg);
this.code = ResponseEnum.SHOW_FAIL.value();
this.object = object;
}
/**
*
* `RuntimeException` `msg`
* HTTP `ResponseEnum.SHOW_FAIL.value()` `code`
*
*
* @param msg `RuntimeException`
*/
public YamiShopBindException(String msg) {
super(msg);
this.code = ResponseEnum.SHOW_FAIL.value();
}
}
/**
*
* `RuntimeException` `msg`
* HTTP `ResponseEnum.SHOW_FAIL.value()` `code`
* `object`
* 便
*
* @param msg `RuntimeException`
* @param object `object` 便
*/
public YamiShopBindException(String msg, Object object) {
super(msg);
this.code = ResponseEnum.SHOW_FAIL.value();
this.object = object;
}
}
Loading…
Cancel
Save