Rework the Clds DAO and properties associated
[clamp.git] / src / main / java / org / onap / clamp / clds / exception / AjscExceptionMapper.java
index 41023ac..6aeadc5 100644 (file)
 
 package org.onap.clamp.clds.exception;
 
+import javax.ws.rs.core.Response;
+import javax.ws.rs.ext.ExceptionMapper;
+
 import com.att.ajsc.common.AjscProvider;
 import com.att.ajsc.common.exception.ServerErrorException;
 import com.att.ajsc.common.exception.ServiceException;
 
-import javax.ws.rs.core.Response;
-import javax.ws.rs.ext.ExceptionMapper;
-
 @AjscProvider
 public class AjscExceptionMapper implements ExceptionMapper<Exception> {
 
     @Override
     public Response toResponse(final Exception exception) {
-        return exception instanceof ServiceException ? ((ServiceException) exception).toResponse() : new ServerErrorException(exception.getMessage()).toResponse();
+        return exception instanceof ServiceException ? ((ServiceException) exception).toResponse()
+                : new ServerErrorException(exception.getMessage()).toResponse();
     }
 }