Code example for HibernateException

Methods: getMessage

0
	                s = sessionFactory.openSession();
	                threadSession.set(s);
	            } 
    	    } 
        } catch(HibernateException e) {
            logger.error("Exception " + e.getMessage(), e);
            throw new PersistException(e);
        } 
	    return s;
	} 
	 
	public static Session getSession() {
		return getSession(false); 
	} 
	 
	public static void closeSession() { 
	    closeSession(false); 
	} 
 
	public static void closeSession(boolean cloudStackSession) {