<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/16993" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2009-07-01T07:05:04-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/16993</id>

		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2009-07-01T07:05:04-04:00</updated>

		<published>2009-07-01T07:05:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89391#p89391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89391#p89391"/>
		<title type="html"><![CDATA[Catch error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89391#p89391"><![CDATA[
Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Wed Jul 01, 2009 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-06-28T21:52:10-04:00</updated>

		<published>2009-06-28T21:52:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89372#p89372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89372#p89372"/>
		<title type="html"><![CDATA[Catch error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89372#p89372"><![CDATA[
Use the "catch" command with each ::mysql::* command? (works for any other command that would throw an error, as well).<br><br>Workflow would be something like this:<div class="codebox"><p>Code: </p><pre><code>if {[catch {::mysql::sel "SELECT * FROM `Yourtable`" -list} result]} {  putlog "An error occured while retrieving data from `Yourtable`. The error was \"$result\"."} {  putlog "Retrieved data from `Yourtable`:"  foreach item $result {    putlog "data: [join $item ", "]"  }}</code></pre></div>In the case of an error, you'll also find extended information on the error in the ::errorInfo and ::errorCode variables (<em class="text-italics">putlog $::errorCode</em> or such).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jun 28, 2009 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2009-06-28T19:46:15-04:00</updated>

		<published>2009-06-28T19:46:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89370#p89370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89370#p89370"/>
		<title type="html"><![CDATA[Catch error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89370#p89370"><![CDATA[
Hello<br><div class="codebox"><p>Code: </p><pre><code>&lt;Eggdrop&gt; [XX:XX] Tcl error [my_proc]: ::mysql::sel/db server: MySQL server has gone away</code></pre></div>is there any way to catch this error? and execute something when it catches?<br><br>Thank you<br>GaRfWeN<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Sun Jun 28, 2009 7:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
