<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Exception: Wie werfen?]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich habe eine Exception Klasse geschrieben. Momentan werfe ich so:</p>
<p>throw new Myclass(&quot;Datei konnte nicht geöffnet werden.&quot;, &quot;Checken sie ob Datei vorhanden ist.&quot;, sFilename);</p>
<p>Irgendwo hatte ich gelesen das Exceptions immer als Objekt geworfen werden müssen. (Und als Referenz gefangen werden müssen.) Hier werfe ich einen Pointer. Hat das irgendwelche Nachteile?</p>
<p>Vielen Dank</p>
<p>Boran</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192749/exception-wie-werfen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 27 Sep 2026 14:44:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192749.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Sep 2007 10:23:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exception: Wie werfen? on Tue, 18 Sep 2007 10:23:31 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich habe eine Exception Klasse geschrieben. Momentan werfe ich so:</p>
<p>throw new Myclass(&quot;Datei konnte nicht geöffnet werden.&quot;, &quot;Checken sie ob Datei vorhanden ist.&quot;, sFilename);</p>
<p>Irgendwo hatte ich gelesen das Exceptions immer als Objekt geworfen werden müssen. (Und als Referenz gefangen werden müssen.) Hier werfe ich einen Pointer. Hat das irgendwelche Nachteile?</p>
<p>Vielen Dank</p>
<p>Boran</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1367595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1367595</guid><dc:creator><![CDATA[Boran]]></dc:creator><pubDate>Tue, 18 Sep 2007 10:23:31 GMT</pubDate></item><item><title><![CDATA[Reply to Exception: Wie werfen? on Tue, 18 Sep 2007 10:26:32 GMT]]></title><description><![CDATA[<p>Ja, es hat einen Nachteil: Du mußt daran denken, die Exception selber wieder zu entsorgen, nachdem du sie verarbeitet hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1367599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1367599</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 18 Sep 2007 10:26:32 GMT</pubDate></item><item><title><![CDATA[Reply to Exception: Wie werfen? on Tue, 18 Sep 2007 10:28:02 GMT]]></title><description><![CDATA[<p>Wer räumt auf?</p>
<p>Was versprichst du dir durch werfen eines Zeigers?</p>
<p>Lass einfach die drei zeichen n, e und w nach dem throw weg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1367601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1367601</guid><dc:creator><![CDATA[Helium]]></dc:creator><pubDate>Tue, 18 Sep 2007 10:28:02 GMT</pubDate></item><item><title><![CDATA[Reply to Exception: Wie werfen? on Tue, 18 Sep 2007 10:58:30 GMT]]></title><description><![CDATA[<p>Das vereinfacht die Sache natürlich. Vielen Dank. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1367621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1367621</guid><dc:creator><![CDATA[Boran]]></dc:creator><pubDate>Tue, 18 Sep 2007 10:58:30 GMT</pubDate></item><item><title><![CDATA[Reply to Exception: Wie werfen? on Tue, 18 Sep 2007 11:02:05 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>nur als Zusatzinfo: Exceptions werden automatisch kopiert !<br />
Deswegen muss die Exceptionklasse das ermöglichen und arbeitet der Fänger immer auf einer Kopie.<br />
Ist im &quot;Standardbetrieb&quot; kein Problem, kann aber im Einzelfall zu Verwirrung führen.</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1367625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1367625</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Tue, 18 Sep 2007 11:02:05 GMT</pubDate></item></channel></rss>