package com.yammer.stresstime.managers.exceptions;

import org.hibernate.HibernateException;

import javax.ws.rs.core.Response;

public class HibernateUncaughtException extends StresstimeException {

    public HibernateUncaughtException(HibernateException e) {
        super(Response.serverError().entity("Database exception").build());
        initCause(e);
    }
}

@@ -269,16 +269,19 @@
   super(
+e, 
 Response
@@ -338,30 +338,8 @@
 ));%0A
-        initCause(e);%0A
     

Fix bug with HibernateUncaughtException