ErrInfo (Socket function)

From m204wiki
Revision as of 19:33, 8 November 2011 by 198.242.244.47 (talk) (Created page with " <span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span> ErrInfo function <p> <var>ErrInfo</var> is a member of the <var>[[...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin=dpl_desc/><section end=dpl_desc/>

ErrInfo is a member of the Socket class.

This shared method retrieves information about the last Janus Sockets error. The ErrInfo function is similar in effect to $Sock_Errinfo.

Syntax

%errinfo = %(Socket):ErrInfo(infotype)

Syntax terms

%errinfo A string variable to contain the returned error information. If no Janus Sockets error has occurred since the thread logged in, a null string is returned.
%(Socket) The class name in parentheses denotes a shared method. Specifying %(Socket): is not the only way to invoke the method (see ?? refid=themeth.).
infotype One of the following strings:
CODE Retrieve the code from the last Janus Sockets error.
SOCKNUM Retrieve the socket number used by the last Janus Sockets operation with an error condition.
FUN Retrieve the name of the $function producing the last Janus Sockets error. This may also be the string "Captured print", if a captured "print" operation was the last operation that encountered a <var class="product"

ErrInfo is not affected by any ONRESET setting.