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