<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:56 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>[CSHARP-474] Review all exceptions thrown by the C# driver</title>
                <link>https://jira.mongodb.org/browse/CSHARP-474</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In some cases the C# driver is not throwing the most appropriate exception. This task is a high level one to review all the exceptions being thrown by the C# driver to verify that the correct type is being thrown and that the error message is appropriate.&lt;/p&gt;

&lt;p&gt;Several other JIRAs that refer to specific instances of exceptions that are being questioned are linked to this JIRA.&lt;/p&gt;

&lt;p&gt;Note that changing the type of an exception thrown is a breaking change because code written to catch the exception will no longer catch it when the type changes. Changing the error message is also potentially a breaking change because sometimes user code inspects the text of the error message.&lt;/p&gt;</description>
                <environment></environment>
        <key id="39411">CSHARP-474</key>
            <summary>Review all exceptions thrown by the C# driver</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 May 2012 04:02:23 +0000</created>
                <updated>Thu, 11 Oct 2018 17:54:29 +0000</updated>
                            <resolved>Thu, 11 Oct 2018 17:54:29 +0000</resolved>
                                    <version>1.4.2</version>
                                                    <component>Error Handling</component>
                                        <votes>4</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="233921" author="sleeper" created="Tue, 8 Jan 2013 08:13:19 +0000"  >&lt;p&gt;&quot;Note that changing the type of an exception thrown is a breaking change because code written to catch the exception will no longer catch it when the type changes. Changing the error message is also potentially a breaking change because sometimes user code inspects the text of the error message.&quot;&lt;/p&gt;

&lt;p&gt;Maybe create a new type of exception that inherit from the original exception, and add in message &quot;obsolete, this exception will not be caught using xxx type&quot;?&lt;/p&gt;

&lt;p&gt;As for message inspection, shouldn&apos;t have done that in the first place. Ignore them imo.&lt;/p&gt;</comment>
                            <comment id="148299" author="optimiz3" created="Fri, 27 Jul 2012 20:29:46 +0000"  >&lt;p&gt;I&apos;ve noticed several cases of this too, such as throwing FileFormatException which seems wrong as it is designed to refer to a specific entity (i.e. file or url, note the constructor variants) and in the BSON code no specific files are being dealt with.  Likely the intended exception is either InvalidDataException with in some rare cases EndOfStreamException.  Also there were spots where it seemed like a SerializationException should be thrown instead (in the non-Bson\IO code) - preferably a class derived from SerializationException if SerializationException is thrown.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="66765">CSHARP-691</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="41884">CSHARP-506</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="45153">CSHARP-534</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14291">CSHARP-155</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14262">CSHARP-153</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="30783">CSHARP-393</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="39212">CSHARP-473</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="37741">CSHARP-463</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="65931">CSHARP-689</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000UaRheIAF]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <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|hrsujr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>82190</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="262">C# Sprint 8</customfieldvalue>
    <customfieldvalue id="263">C# Sprint 9</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>