diff --git a/airpower-core/src/main/java/cn/hamm/airpower/exception/ServiceException.java b/airpower-core/src/main/java/cn/hamm/airpower/exception/ServiceException.java index 14a4a4f3bd3995ebba5d877545b82f47f8519ae8..85489a06784c836d42fe75957254eb963b83a2d3 100644 --- a/airpower-core/src/main/java/cn/hamm/airpower/exception/ServiceException.java +++ b/airpower-core/src/main/java/cn/hamm/airpower/exception/ServiceException.java @@ -76,6 +76,6 @@ public class ServiceException extends RuntimeException implements IException { * @param exception 异常 */ public ServiceException(@NotNull Exception exception) { - this.setCode(ServiceError.EMAIL_ERROR.getCode()).setMessage(exception.getMessage()); + this.setCode(ServiceError.SERVICE_ERROR.getCode()).setMessage(exception.getMessage()); } }