<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:39:01 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[GODRIVER-2615] Implement Is and As for mongo errors</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2615</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Came up in a recent &lt;a href=&quot;https://mongodb.slack.com/archives/C7WJZNUTA/p1666724974171299?thread_ts=1666641166.307209&amp;amp;cid=C7WJZNUTA&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;slack conversation&lt;/a&gt;. We should implement &lt;tt&gt;Is&lt;/tt&gt;&#160;or &lt;tt&gt;As&lt;/tt&gt;&#160;for our custom errors to return true if any of the contained errors match the given error. Other popular drivers seem to &lt;a href=&quot;https://github.com/go-sql-driver/mysql/blob/master/errors.go#L72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;follow this pattern&lt;/a&gt; to allow users to call &lt;tt&gt;errors.Is&lt;/tt&gt; and &lt;tt&gt;errors.As&lt;/tt&gt; on their custom errors.&lt;/p&gt;

&lt;p&gt;For each error in &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/mongo/errors.go&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongo/errors.go&lt;/a&gt;, implement &lt;tt&gt;Is&lt;/tt&gt; to check all possible contained error strings and implement &lt;tt&gt;As&lt;/tt&gt; to cast to any contained error type.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2167404">GODRIVER-2615</key>
            <summary>Implement Is and As for mongo errors</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="benji.rewis@mongodb.com">Benji Rewis</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Oct 2022 14:27:34 +0000</created>
                <updated>Mon, 7 Nov 2022 20:43:39 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0y560:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>