Package org.jboss.arquillian.persistence.core.exception

Examples of org.jboss.arquillian.persistence.core.exception.DatabaseDumpException


         writer = new BufferedWriter(new FileWriter(dataDump.getPath()));
         writer.write(dataDump.getDataSet());
      }
      catch (Exception e)
      {
         throw new DatabaseDumpException("Unable to dump database state to " + dataDump.getPath(), e);
      }
      finally
      {
         dumpDataCommand.setResult(true);
         if (writer != null)
         {
            try
            {
               writer.close();
            }
            catch (IOException e)
            {
               throw new DatabaseDumpException("Unable to close writer.", e);
            }
         }
      }
   }
View Full Code Here


         writer = new BufferedWriter(new FileWriter(dataDump.getPath()));
         writer.write(dataDump.getDataSet());
      }
      catch (Exception e)
      {
         throw new DatabaseDumpException("Unable to dump database state to " + dataDump.getPath(), e);
      }
      finally
      {
         dumpDataCommand.setResult(true);
         if (writer != null)
         {
            try
            {
               writer.close();
            }
            catch (IOException e)
            {
               throw new DatabaseDumpException("Unable to close writer.", e);
            }
         }
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.core.exception.DatabaseDumpException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.