|
@@ -1,5 +1,6 @@
|
|
|
package org.dromara.common.core.exception.base;
|
|
|
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
import org.dromara.common.core.utils.MessageUtils;
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
@@ -16,6 +17,7 @@ import java.io.Serial;
|
|
|
@Data
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@NoArgsConstructor
|
|
|
+@AllArgsConstructor
|
|
|
public class BaseException extends RuntimeException {
|
|
|
|
|
|
@Serial
|
|
@@ -41,13 +43,6 @@ public class BaseException extends RuntimeException {
|
|
|
*/
|
|
|
private String defaultMessage;
|
|
|
|
|
|
- public BaseException(String module, String code, Object[] args, String defaultMessage) {
|
|
|
- this.module = module;
|
|
|
- this.code = code;
|
|
|
- this.args = args;
|
|
|
- this.defaultMessage = defaultMessage;
|
|
|
- }
|
|
|
-
|
|
|
public BaseException(String module, String code, Object[] args) {
|
|
|
this(module, code, args, null);
|
|
|
}
|