Logger.getLogger(CategoryDA.class.getName()).log(Level.SEVERE, "[CategoryDA::writeData]Failed to create filename " + fileName);
throw new IOException("[CategoryDA::writeData]Failed to create filename " + fileName);
}
} catch (IOException ex) {
Logger.getLogger(CategoryDA.class.getName()).log(Level.SEVERE, null, ex);
throw new AppException(ex, "[CategoryDA::writeData]", ex.getMessage());
} finally {
try {
if (bw != null) {
bw.close();
}