aboutsummaryrefslogtreecommitdiff
path: root/doc/socket.html
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2016-02-24 13:23:20 -0300
committerDiego Nehab <diego.nehab@gmail.com>2016-02-24 13:23:20 -0300
commitfe7b37acedd61f425b8d0b0531e78cc45554b332 (patch)
tree00f58b0d7dcb593fafaa69a4c45b9d76fbd24e2e /doc/socket.html
parent9ffd96724da09352abe99c8525bbccb6bc34cb48 (diff)
parent0341516a2932e077b547f8105e0ea13f3f56f868 (diff)
downloadluasocket-fe7b37acedd61f425b8d0b0531e78cc45554b332.tar.gz
luasocket-fe7b37acedd61f425b8d0b0531e78cc45554b332.tar.bz2
luasocket-fe7b37acedd61f425b8d0b0531e78cc45554b332.zip
Merge pull request #166 from siffiejoe/exception-tweaks
Exception tweaks
Diffstat (limited to 'doc/socket.html')
-rw-r--r--doc/socket.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/socket.html b/doc/socket.html
index a43a208..fec09c4 100644
--- a/doc/socket.html
+++ b/doc/socket.html
@@ -167,8 +167,7 @@ is raised.
167 167
168<p class=parameters> 168<p class=parameters>
169<tt>Finalizer</tt> is a function that will be called before 169<tt>Finalizer</tt> is a function that will be called before
170<tt>try</tt> throws the exception. It will be called 170<tt>try</tt> throws the exception.
171in <em>protected</em> mode.
172</p> 171</p>
173 172
174<p class=return> 173<p class=return>
@@ -216,8 +215,9 @@ to throw exceptions.
216</p> 215</p>
217 216
218<p class=return> 217<p class=return>
219Returns an equivalent function that instead of throwing exceptions, 218Returns an equivalent function that instead of throwing exceptions in case of
220returns <tt><b>nil</b></tt> followed by an error message. 219a failed <a href=#try><tt>try</tt></a> call, returns <tt><b>nil</b></tt>
220followed by an error message.
221</p> 221</p>
222 222
223<!-- select +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 223<!-- select +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
@@ -416,8 +416,9 @@ socket.<b>try(</b>ret<sub>1</sub> [, ret<sub>2</sub> ... ret<sub>N</sub>]<b>)</b
416</p> 416</p>
417 417
418<p class=description> 418<p class=description>
419Throws an exception in case of error. The exception can only be caught 419Throws an exception in case <tt>ret<sub>1</sub></tt> is falsy, using
420by the <a href=#protect><tt>protect</tt></a> function. 420<tt>ret<sub>2</sub></tt> as the error message. The exception is supposed to be caught
421by a <a href=#protect><tt>protect</tt></a>ed function only.
421</p> 422</p>
422 423
423<p class=parameters> 424<p class=parameters>