<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CEnvelope on sillysky.net</title>
    <link>https://sillysky.net/docs/nyssr/messages/cenvelope/</link>
    <description>Recent content in CEnvelope on sillysky.net</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 14 Oct 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sillysky.net/docs/nyssr/messages/cenvelope/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CResult</title>
      <link>https://sillysky.net/docs/nyssr/messages/cenvelope/cresult/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/nyssr/messages/cenvelope/cresult/</guid>
      <description>&lt;p&gt;A result object combines an error code and an error text into a small class.&lt;/p&gt;&#xA;&lt;h2 id=&#34;constructors&#34;&gt;Constructors&lt;/h2&gt;&#xA;&lt;p&gt;The default constructor creates a result with a code 0 (=SUCCESS) and an empty&#xA;text.&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-java&#34;&gt;public &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cenvelope/cresult/&#34;&gt;CResult&lt;/a&gt;();&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;There are constructors for taking a code and an optional text:&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-java&#34;&gt;public &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cenvelope/cresult/&#34;&gt;CResult&lt;/a&gt;(final int aCode);&#xA;public &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cenvelope/cresult/&#34;&gt;CResult&lt;/a&gt;(final int aCode,&#xA;               final String aText);&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;The copy constructor creates a copy:&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-java&#34;&gt;public &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cenvelope/cresult/&#34;&gt;CResult&lt;/a&gt;(@NotNull final &lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cenvelope/cresult/&#34;&gt;CResult&lt;/a&gt; aResult);&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;An exception can be passed directly. The code and the message are then taken&#xA;from it. In case of a normal Java exception, the code is missing, so it is&#xA;replaced by &lt;code&gt;CResultCode.EXCEPTION&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
