aboutsummaryrefslogtreecommitdiff
path: root/doc/socket.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/socket.html')
-rw-r--r--doc/socket.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/socket.html b/doc/socket.html
index f638fd9..18c71d1 100644
--- a/doc/socket.html
+++ b/doc/socket.html
@@ -145,7 +145,10 @@ socket.<b>protect(</b>func<b>)</b>
145</p> 145</p>
146 146
147<p class=description> 147<p class=description>
148Converts a function that throws exceptions into a safe function. 148Converts a function that throws exceptions into a safe function. This
149function only catches exceptions thrown by the <a href=#try><tt>try</tt></a>
150and <a href=#newtry><tt>newtry</tt></a> functions. It does not catch normal
151Lua errors.
149</p> 152</p>
150 153
151<p class=parameters> 154<p class=parameters>
@@ -346,7 +349,9 @@ socket.<b>try(</b>ret<sub>1</sub> [, ret<sub>2</sub> ... ret<sub>N</sub>]<b>)</b
346</p> 349</p>
347 350
348<p class=description> 351<p class=description>
349Throws an exception in case of error. 352Throws an exception in case of error. The exception can only be caught
353by the <a href=#protect><tt>protect</tt></a> function. It does not explode
354into an error message.
350</p> 355</p>
351 356
352<p class=parameters> 357<p class=parameters>