using ref to view error
<p>I working now on firm that using ref in every function.<br>
The reason, is to catch errors.<br>
There example  :</p>

<pre><code>//return true if the read is success
//otherwise writing to the error ,the problem 
bool ReadFile(ref string error)
</code></pre>

<p><strong>Question:</strong><br>
How do you catching errors?<br>
Using ref,exceptions or other way?</p>
