X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=influxlogger%2Fsrc%2Fmain%2Fjava%2Forg%2Foran%2Fpmlog%2Fexceptions%2FServiceException.java;h=f7e49991d5322fcb34df87ecefa1252f50a164a4;hb=331535e4fea69fbdcf3c74cc1cdfe8b05c9080f4;hp=f05d955f9dd31b0b6911525d9ae0ff8b69aa2069;hpb=9e3ded97088f197b335d060e1c9ddf7d6c0ecd89;p=nonrtric%2Fplt%2Franpm.git diff --git a/influxlogger/src/main/java/org/oran/pmlog/exceptions/ServiceException.java b/influxlogger/src/main/java/org/oran/pmlog/exceptions/ServiceException.java index f05d955..f7e4999 100644 --- a/influxlogger/src/main/java/org/oran/pmlog/exceptions/ServiceException.java +++ b/influxlogger/src/main/java/org/oran/pmlog/exceptions/ServiceException.java @@ -36,4 +36,8 @@ public class ServiceException extends Exception { this.httpStatus = httpStatus; } + public ServiceException(String message) { + this(message, HttpStatus.I_AM_A_TEAPOT); + } + }