ADD file via upload

master
p5j9vn3t2 2 years ago
parent ab9e786226
commit 69a76be328

@ -0,0 +1,35 @@
package com.example.exception;
import com.example.common.ResultCode;
public class CustomException extends RuntimeException {
private String code;
private String msg;
public CustomException(ResultCode resultCode) {
this.code = resultCode.code;
this.msg = resultCode.msg;
}
public CustomException(String code, String msg) {
this.code = code;
this.msg = msg;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}
Loading…
Cancel
Save