1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- package com.kmall.common.utils;
- /**
- * 自定义异常
- *
- * @author Scott
- * @email
- * @date 2016年10月27日 下午10:11:27
- */
- public class ApiRRException extends RuntimeException {
- private static final long serialVersionUID = 1L;
- private String errmsg;
- private int errno = 500;
- public ApiRRException(String errmsg) {
- super(errmsg);
- this.errmsg = errmsg;
- }
- public ApiRRException(String errmsg, Throwable e) {
- super(errmsg, e);
- this.errmsg = errmsg;
- }
- public ApiRRException(String errmsg, int errno) {
- super(errmsg);
- this.errmsg = errmsg;
- this.errno = errno;
- }
- public ApiRRException(String errmsg, int errno, Throwable e) {
- super(errmsg, e);
- this.errmsg = errmsg;
- this.errno = errno;
- }
- public String getErrmsg() {
- return errmsg;
- }
- public void setErrmsg(String errmsg) {
- this.errmsg = errmsg;
- }
- public int getErrno() {
- return errno;
- }
- public void setErrno(int errno) {
- this.errno = errno;
- }
- }
|