public void commit(User parsed) throws IOException { try { cachedStorage().write(parsed); } catch (SessionUnavailableException e) { e.printStackTrace(); throw new UserStorageClosedException("User databse closed while writing case."); } catch (StorageFullException e) { e.printStackTrace(); throw new IOException("Storage full while writing case!"); } }