-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: API
-
None
-
Java Drivers
Summary
com.mongodb.MongoWriteException is not java.io.Serializable. This is because of com.mongodb.MongoWriteException#error of type `com.mongodb.WriteError` not implementing Serializable.
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
4.7.2 (Issue is present in latest master as well)
How to Reproduce
Try to serialize any exception chain containing MongoWriteException
Additional Background
-
- duplicates
-
JAVA-2131 Make all classes referenced by MongoException subclasses implement Serializable
- Backlog