title: PMD error - AvoidThrowingRawExceptionTypes
body: <p>I have a class as follows, when I run PMD rule I'm getting a PMD Alert of type <code>AvoidThrowingRawExceptionTypes</code>. I'm not able to resolve this, because when I add any other exception types in constructor throws clause I'm getting error in </p>
  
  <pre><code>new PersistenceManager(CommonConstants.IP_DB)
  </code></pre>
  
  <p>How to resolve this? Can anybody help me on this?.</p>
  
  <pre><code>public class PersistenceManager implements CommonConstants {
  .....
  
  /**
       * Stores the persistence mgr for IPMasterData_DB
       */
      public static PersistenceManager IPMasterData_DB  = new PersistenceManager(
                                                                CommonConstants.IP_DB);
       /**
               * Configures the data source according to the resource passed.
               * 
               * @param dbName
               *        Databasename
               */
              protected PersistenceManager(String dbName) throws Exception{
                  String resourceName = "";
                  if (LOGGER == null) {
                      LOGGER = Logger.getLogger(PersistenceManager.class);
                  }
                  try {
  
                      resourceName = getConfigFileName(dbName);
  
                      this.sessionFactory = new Configuration().configure(resourceName)
                              .setProperty("hibernate.jdbc.batch_size",
                                      PersistenceManager.getBatchSize(dbName))
                              .buildSessionFactory();
                  } catch (HibernateException ex) {
                      ex.printStackTrace();
                      LOGGER
                              .error("Exception building SessionFactory for configKey ",
                                      ex);
                      throw new RuntimeException(ErrorConstants.SESSIONFACTORY_BUILD, ex);
                  }
              }
  }
  </code></pre>