Showing
1 changed file
with
1 additions
and
3 deletions
@@ -18,9 +18,7 @@ public class ServiceExceptions { | @@ -18,9 +18,7 @@ public class ServiceExceptions { | ||
18 | } | 18 | } |
19 | 19 | ||
20 | public static void throwServiceException(String message) { | 20 | public static void throwServiceException(String message) { |
21 | - ServiceException serviceException = new ServiceException(ServiceError.ORDER_SERVICE_ERROR); | ||
22 | - serviceException.setParams(message); | ||
23 | - throw serviceException; | 21 | + throw new ServiceException(400, message); |
24 | } | 22 | } |
25 | 23 | ||
26 | public static void throwServiceExceptionIf(Condition condition, int code, String message) { | 24 | public static void throwServiceExceptionIf(Condition condition, int code, String message) { |
-
Please register or login to post a comment