Authored by LUOXC

throw 400

... ... @@ -18,9 +18,7 @@ public class ServiceExceptions {
}
public static void throwServiceException(String message) {
ServiceException serviceException = new ServiceException(ServiceError.ORDER_SERVICE_ERROR);
serviceException.setParams(message);
throw serviceException;
throw new ServiceException(400, message);
}
public static void throwServiceExceptionIf(Condition condition, int code, String message) {
... ...