The implementation can be as simple as adding a try/catch block:
public boolean saveMove(TicTacToeBean bean) { try { getMongoCollection().save(bean); return true; } catch (Exception e) { return false; } }
The implementation can be as simple as adding a try/catch block:
public boolean saveMove(TicTacToeBean bean) { try { getMongoCollection().save(bean); return true; } catch (Exception e) { return false; } }