| | |
| | | import com.vci.ubcs.starter.web.util.MessageUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springframework.web.server.ServerErrorException; |
| | | |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.lang.reflect.Method; |
| | | import java.text.MessageFormat; |
| | | |
| | | public class VciBaseException extends RuntimeException { |
| | | public class VciBaseException extends ServiceException { |
| | | private Logger log = LoggerFactory.getLogger(this.getClass()); |
| | | public static final String paramNull = "com.vci.base.paramNull"; |
| | | public static final String fieldValueRepeat = "com.vci.base.fieldValueRepeat"; |
| | |
| | | private Object[] objs = new Object[0]; |
| | | |
| | | public VciBaseException(String code) { |
| | | super(code); |
| | | this.code = code; |
| | | } |
| | | |
| | | public VciBaseException(String code, Object[] objs) { |
| | | super(code); |
| | | this.code = code; |
| | | this.objs = objs; |
| | | } |
| | | |
| | | public VciBaseException(String code, Object[] objs, Throwable e) { |
| | | super(e); |
| | | super(code); |
| | | this.code = code; |
| | | this.objs = objs; |
| | | } |