|
|
@ -19,6 +19,12 @@ import org.apache.commons.lang3.StringUtils; |
|
|
|
* @since 1.0.0 |
|
|
|
*/ |
|
|
|
public class RenException extends RuntimeException { |
|
|
|
|
|
|
|
public enum MessageMode { |
|
|
|
//code_内部信息_外部信息
|
|
|
|
CODE_INTERNAL_EXTERNAL |
|
|
|
} |
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
private int code; |
|
|
|
/** |
|
|
@ -47,7 +53,7 @@ public class RenException extends RuntimeException { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public RenException(int code, String internalMsg, String msg) { |
|
|
|
public RenException(int code, String internalMsg, String msg, MessageMode mode) { |
|
|
|
this(code, internalMsg); |
|
|
|
this.msg = msg; |
|
|
|
} |
|
|
|