List of usage examples for org.hibernate.cfg RecoverableException RecoverableException
public RecoverableException(String msg)
From source file:com.intuit.tank.dao.ScriptDao.java
License:Open Source License
public SerializedScriptStep serialize(List<ScriptStep> steps) { ObjectOutputStream s = null;//from ww w. ja v a2 s. c o m try { // if (steps.size() > 0) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); s = new ObjectOutputStream(bos); s.writeObject(steps); return new SerializedScriptStep(bos.toByteArray()); // } } catch (IOException e) { throw new RecoverableException(e); } finally { IOUtils.closeQuietly(s); } }