<head><title>ColdC: Function/Method Reference: throw()</title></head> <body> <h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: throw()</h1> <hr> <p><font size=+1><b>throw</b>(<i>ERROR <b>code</b>, STRING <b>explanation</b>[, ANY <b>additional</b>]</i>)</font> <p>This function throws an error with the code <var>code</var> in the calling method, not the current method. The current method does not have the ability to stop a method originating in itself. The variables <VAR>explanation</VAR> and <var>additional</var> appear in the traceback. For more information on error handling see <a href="traceback.html"><code>traceback()</code></a> and <a href="/ColdC/errors.html">Errors</a>. <P>Example using <code>throw()</code>: <blockquote><PRE>throw(~perm, "Sender is not the system object.");</PRE></blockquote> <p><hr size=4><p align=center><i>Last Modified on Mar 2 1996</i> <br><i>Copyright © 1995, 1996, Brandon Gillespie</i> </body>