diff options
Diffstat (limited to 'doc/socket.html')
| -rw-r--r-- | doc/socket.html | 13 |
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. |
| 171 | in <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> |
| 219 | Returns an equivalent function that instead of throwing exceptions, | 218 | Returns an equivalent function that instead of throwing exceptions in case of |
| 220 | returns <tt><b>nil</b></tt> followed by an error message. | 219 | a failed <a href=#try><tt>try</tt></a> call, returns <tt><b>nil</b></tt> |
| 220 | followed 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> |
| 419 | Throws an exception in case of error. The exception can only be caught | 419 | Throws an exception in case <tt>ret<sub>1</sub></tt> is falsy, using |
| 420 | by 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 |
| 421 | by 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> |
