Difference between revisions of "STRERROR()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{{YLM to do}}
+
==Purpose==
 +
Function to return desription for latest or specified Operating System dependent error number
 +
 
 +
 
 +
==Syntax==
 +
STRERROR([<expN>])
 +
 
 +
 
 +
==See Also==
 +
[[CERROR()]], [[DOSERROR()]], [[ERRNO()]], [[ERROR()]], [[MESSAGE()]], [[ON ERROR]]
 +
 
 +
 
 +
==Description==
 +
The STRERROR() function returns the description for the Operating System dependent error number for the last error encountered.  If the optional <expN> is specified, STRERROR() will return the description for that error number.
 +
 
 +
 
 +
==Example==
 +
<code lang="recital">
 +
if errno()>0
 +
    err = errno()
 +
    set message to "System error: &err " + strerror()
 +
endif
 +
</code>
 +
 
 +
 
 +
==Products==
 +
Recital, Recital Server
 +
[[Category:Documentation]]
 +
[[Category:Functions]]
 +
[[Category:Error Handling and Debugging]]
 +
[[Category:Error Handling and Debugging Functions]]

Revision as of 16:42, 30 October 2009

Purpose

Function to return desription for latest or specified Operating System dependent error number


Syntax

STRERROR([<expN>])


See Also

CERROR(), DOSERROR(), ERRNO(), ERROR(), MESSAGE(), ON ERROR


Description

The STRERROR() function returns the description for the Operating System dependent error number for the last error encountered. If the optional <expN> is specified, STRERROR() will return the description for that error number.


Example

if errno()>0
    err = errno()
    set message to "System error: &err " + strerror()
endif


Products

Recital, Recital Server