<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 07:38:41 UTC 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DCOM-105/DCOM-105.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DCOM-105] Common base exception class</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-105</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;Per our discussion on IRC/Twitter.&lt;/p&gt;

&lt;p&gt;It would be nice if all exceptions thrown had a common base, so something like this is possible to catch all exceptions from Doctrine:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; {
    &lt;span class=&quot;code-comment&quot;&gt;// some code here
&lt;/span&gt;} &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (\Doctrine\Common\BaseException $e) {
    &lt;span class=&quot;code-comment&quot;&gt;// something in Doctrine threw an exception, handle it here
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;(The name is just an example.)&lt;/p&gt;

&lt;p&gt;For reference:&lt;br/&gt;
&lt;a href=&quot;https://wiki.php.net/pear/rfc/pear2_exception_policy&quot; class=&quot;external-link&quot;&gt;https://wiki.php.net/pear/rfc/pear2_exception_policy&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13988">DCOM-105</key>
            <summary>Common base exception class</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="3">Duplicate</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Aug 2012 13:12:08 +0000</created>
                <updated>Thu, 21 Feb 2013 10:09:58 +0000</updated>
                    <resolved>Thu, 21 Feb 2013 10:09:58 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18545" author="stof" created="Mon, 27 Aug 2012 13:20:20 +0000"  >&lt;p&gt;Instead of a base class (which forbids extending the SPL exception), I would go the same way than Symfony2 and ZF: using an interface.&lt;/p&gt;</comment>
                    <comment id="18547" author="till" created="Mon, 27 Aug 2012 17:09:47 +0000"  >&lt;p&gt;That&apos;s basically what the PEAR2 RFC is doing.&lt;/p&gt;</comment>
                    <comment id="19579" author="ocramius" created="Thu, 21 Feb 2013 10:09:58 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DCOM-80&quot; title=&quot;Add common exceptions into Doctrine\Common&quot;&gt;DCOM-80&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>