| | |
| | | */ |
| | | public class PlatTipsException extends RuntimeException { |
| | | |
| | | /**总编码*/ |
| | | private String code; |
| | | /**子编码*/ |
| | | private String subCode = "100"; |
| | | |
| | | public PlatTipsException( String code,String message) { |
| | | super(message); |
| | | this.code = code; |
| | | } |
| | | |
| | | public PlatTipsException( String code,String subCode,String message) { |
| | | super(message); |
| | | this.code = code; |
| | | this.subCode = subCode; |
| | | } |
| | | |
| | | public PlatTipsException( String code,String message, Throwable cause) { |
| | | super(message, cause); |
| | | this.code = code; |
| | | } |
| | | |
| | | public PlatTipsException( String code,String subCode,String message, Throwable cause) { |
| | | super(message, cause); |
| | | this.code = code; |
| | | this.subCode = subCode; |
| | | } |
| | | |
| | | public PlatTipsException(String code,Throwable cause) { |
| | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getSubCode() { |
| | | return subCode; |
| | | } |
| | | |
| | | public void setSubCode(String subCode) { |
| | | this.subCode = subCode; |
| | | } |
| | | } |