google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

BasicDAO.delete - must one check for errors #462

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using version 0.99

The BasicDAO.delete() method returns a WriteResult.
The WriteResult appears to allow for the possibility that it can report 
errors/exceptions.

So must one check for errors for delete?

If one must do that check what is the correct way to do that given the text 
from WriteResult which says the following.

  "if another operation has been done on 
  this connection in the interim, calls will fail"

Original issue reported on code.google.com by joseph.s...@dn2k.com on 30 Jul 2013 at 1:45