Difference between revisions of "STRERROR()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return description for latest or specified Operating System dependent error number
 
Function to return description for latest or specified Operating System dependent error number
 
  
 
==Syntax==
 
==Syntax==
 
STRERROR([<expN>])
 
STRERROR([<expN>])
 
  
 
==See Also==
 
==See Also==
[[CERROR()]], [[DOSERROR()]], [[ERRNO()]], [[ERROR()]], [[MESSAGE()]], [[ON ERROR]]
+
[[CERROR()]], [[DOSERROR()]], [[ERRNO()]], [[ERROR()]], [[MESSAGE()]]
 
+
  
 
==Description==
 
==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.
 
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==
 
==Example==
Line 19: Line 15:
 
if errno()>0
 
if errno()>0
 
     err = errno()
 
     err = errno()
    set message to "System error: &err " + strerror()
 
 
endif
 
endif
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Error Handling and Debugging]]
 
[[Category:Error Handling and Debugging]]
 
[[Category:Error Handling and Debugging Functions]]
 
[[Category:Error Handling and Debugging Functions]]

Revision as of 09:02, 10 February 2012

Purpose

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

Syntax

STRERROR([<expN>])

See Also

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

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()
endif