/*    */ package com.picc.grab.exception;
/*    */ 
/*    */ import com.picc.grab.common.constants.ErrorEnum;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class BusinessException
/*    */   extends RuntimeException
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private int code;
/*    */   private String msg;
/*    */   
/*    */   public String getMsg() {
/* 18 */     return this.msg;
/*    */   }
/*    */   
/*    */   public void setMsg(String msg) {
/* 22 */     this.msg = msg;
/*    */   }
/*    */   
/*    */   public int getCode() {
/* 26 */     return this.code;
/*    */   }
/*    */   
/*    */   public void setCode(int code) {
/* 30 */     this.code = code;
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public BusinessException() {}
/*    */ 
/*    */   
/*    */   public BusinessException(int code) {
/* 39 */     this.code = code;
/*    */   }
/*    */   
/*    */   public BusinessException(ErrorEnum error) {
/* 43 */     this.msg = error.msg;
/* 44 */     this.code = error.code;
/*    */   }
/*    */   
/*    */   public BusinessException(ErrorEnum error, String str) {
/* 48 */     this.msg = String.format(error.msg, new Object[] { str });
/* 49 */     this.code = error.code;
/*    */   }
/*    */   
/*    */   public BusinessException(ErrorEnum error, Integer num) {
/* 53 */     this.msg = String.format(error.msg, new Object[] { num });
/* 54 */     this.code = error.code;
/*    */   }
/*    */   
/*    */   public BusinessException(String msg) {
/* 58 */     this.msg = msg;
/*    */   }
/*    */   
/*    */   public BusinessException(int code, String msg, Throwable t) {
/* 62 */     super(msg, t);
/* 63 */     this.code = code;
/*    */   }
/*    */   
/*    */   public BusinessException(int code, String msg) {
/* 67 */     super(msg);
/* 68 */     this.code = code;
/*    */   }
/*    */   
/*    */   public BusinessException(int code, Throwable cause) {
/* 72 */     super(cause);
/* 73 */     this.code = code;
/*    */   }
/*    */ 
/*    */   
/*    */   protected BusinessException(int code, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
/* 78 */     super(message, cause, enableSuppression, writableStackTrace);
/* 79 */     this.code = code;
/*    */   }
/*    */   
/*    */   public BusinessException(int code, String msg, String errorDesc, Throwable t) {
/* 83 */     super(msg, t);
/* 84 */     this.code = code;
/* 85 */     this.msg = errorDesc;
/*    */   }
/*    */   
/*    */   public BusinessException(int code, String msg, String errorDesc) {
/* 89 */     super(msg);
/* 90 */     this.code = code;
/* 91 */     this.msg = errorDesc;
/*    */   }
/*    */ 
/*    */   
/*    */   protected BusinessException(int code, String message, String errorDesc, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
/* 96 */     super(message, cause, enableSuppression, writableStackTrace);
/* 97 */     this.code = code;
/* 98 */     this.msg = errorDesc;
/*    */   }
/*    */ }


/* Location:              C:\Users\Administrator\Desktop\ROOT\WEB-INF\classes\!\com\picc\grab\exception\BusinessException.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */