[JAVA-4565] Add errorCodeName property to MongoServerException Created: 07/Apr/22 Updated: 28/Oct/23 Resolved: 18/Apr/22 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Error Handling |
| Affects Version/s: | None |
| Fix Version/s: | 4.6.0 |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Currently, only MongoCommandException has the errorCodeName property. However, a recent unified spec test causes a MongoQueryException to be thrown, which does not have this property. Pushing the property down into MongoServerException would make it available on both these classes, and allow the tests to pass. |
| Comments |
| Comment by Githook User [ 18/Apr/22 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Add errorCodeName property to MongoServerException Also, ensure that MongoQueryException pushes the property down through the constructor
|