对比新文件 |
| | |
| | | package com.gk.firework.Domain.Exception; |
| | | |
| | | public class BusinessException extends RuntimeException{ |
| | | private String code; |
| | | private String error; |
| | | |
| | | public BusinessException(String message) { |
| | | super(message); |
| | | } |
| | | |
| | | |
| | | public BusinessException(String code, String error) { |
| | | super(error); |
| | | this.code = code; |
| | | this.error = error; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getError() { |
| | | return error; |
| | | } |
| | | |
| | | public void setError(String error) { |
| | | this.error = error; |
| | | } |
| | | } |