Added support for using oauth token for Kafka
[nonrtric/plt/ranpm.git] / pmproducer / src / main / java / org / oran / pmproducer / exceptions / ServiceException.java
index 55e2a48..5a8fa36 100644 (file)
@@ -36,4 +36,9 @@ public class ServiceException extends Exception {
         this.httpStatus = httpStatus;
     }
 
+    public ServiceException(String message) {
+        super(message);
+        this.httpStatus = HttpStatus.BAD_REQUEST;
+    }
+
 }