[JAVA-1064] Command methods should throw exception Created: 23/Dec/13 Updated: 31/Jul/14 Resolved: 31/Jul/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Trisha Gee | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
In DB.java, command() methods should throw on command failure. Currently, it does not throw even if the command fails, which is error prone for users, who have to check for !result.ok(). |
| Comments |
| Comment by Jeffrey Yemin [ 31/Jul/14 ] |
|
We've decided that this is too risky a breaking change, as existing users might be relying to the current behavior and not expecting the method to throw on command failure. |