[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

JAVA-4565
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0dbd939f30b82ea7c0c19bdc9d4c36a7efeec445

Generated at Thu Feb 08 09:02:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.