<?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[ErrorTypen selbst gemacht]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hab in java schon mal soetwas wie Errortypen-Rückgabewerte entworfen.<br />
also sehr simpel:<br />
errType.noFileFound (war einfach nur int(-2) )<br />
oder:<br />
errType.ok (war ganz simpel int(1) )<br />
also einfach nur eine hübsche lesbare Darstellung von magic-numbers.</p>
<p>Nur fehlt mir grad das stichwort wie die hießen, oder wie ich sie in c++ machen könnte. Ich möchte keine defines machen! (also sowas nicht: #define ERR_OK 1)<br />
Anders find ichs besser.</p>
<p>gruß,<br />
Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/324340/errortypen-selbst-gemacht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 15:27:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/324340.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Mar 2014 09:04:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ErrorTypen selbst gemacht on Thu, 13 Mar 2014 09:04:25 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hab in java schon mal soetwas wie Errortypen-Rückgabewerte entworfen.<br />
also sehr simpel:<br />
errType.noFileFound (war einfach nur int(-2) )<br />
oder:<br />
errType.ok (war ganz simpel int(1) )<br />
also einfach nur eine hübsche lesbare Darstellung von magic-numbers.</p>
<p>Nur fehlt mir grad das stichwort wie die hießen, oder wie ich sie in c++ machen könnte. Ich möchte keine defines machen! (also sowas nicht: #define ERR_OK 1)<br />
Anders find ichs besser.</p>
<p>gruß,<br />
Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388615</guid><dc:creator><![CDATA[cl90]]></dc:creator><pubDate>Thu, 13 Mar 2014 09:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to ErrorTypen selbst gemacht on Thu, 13 Mar 2014 09:15:14 GMT]]></title><description><![CDATA[<p>enum oder Konstanten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388618</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Thu, 13 Mar 2014 09:15:14 GMT</pubDate></item><item><title><![CDATA[Reply to ErrorTypen selbst gemacht on Thu, 13 Mar 2014 10:02:00 GMT]]></title><description><![CDATA[<p><a href="http://www.stroustrup.com/C++11FAQ.html#enum" rel="nofollow">enum class</a> finde ich hübscher.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388634</guid><dc:creator><![CDATA[nwp3]]></dc:creator><pubDate>Thu, 13 Mar 2014 10:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to ErrorTypen selbst gemacht on Thu, 13 Mar 2014 12:45:30 GMT]]></title><description><![CDATA[<p>bing, das was <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="🙂"
    /><br />
Danke euch!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388666</guid><dc:creator><![CDATA[cl90]]></dc:creator><pubDate>Thu, 13 Mar 2014 12:45:30 GMT</pubDate></item></channel></rss>