JAVA-6154Backlog

Investigate inconsistent error label copying in MongoException constructors

h3. Background During the review of [PR #1899|https://github.com/mongodb/mongo-java-driver/pull/1899#discussion_r2931795298], it was identified that {{MongoException}} constructors behave inconsistently with respect to copying error labels from a cause exception: * {{MongoException(final int code, final String msg, final Throwable t)}} — *copies* error labels from the cause. * {{MongoException(@Nullable final String msg, @Nullable final Throwable t)}} — does *not* copy error labels from

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Error Handling
Labels
Tags and classification
FY27Q2-candidatetech-debt