Difference between revisions of "ERROR()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to determine the last error encountered | Function to determine the last error encountered | ||
− | |||
==Syntax== | ==Syntax== | ||
ERROR() | ERROR() | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ERRNO()]], [[MESSAGE()]], [[ | + | [[ERRNO()]], [[MESSAGE()]], [[SET ERRORLOGGING]] |
− | + | ||
==Description== | ==Description== | ||
The ERROR() function returns a number representing the last error encountered. A zero return value indicates that no error has been encountered. The MESSAGE() function can be used to get further information. | The ERROR() function returns a number representing the last error encountered. A zero return value indicates that no error has been encountered. The MESSAGE() function can be used to get further information. | ||
− | |||
==Example== | ==Example== | ||
Line 21: | Line 17: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category:Error Handling | + | [[Category:Error Handling]] |
− | + |
Latest revision as of 07:15, 20 June 2016
Contents
Purpose
Function to determine the last error encountered
Syntax
ERROR()
See Also
ERRNO(), MESSAGE(), SET ERRORLOGGING
Description
The ERROR() function returns a number representing the last error encountered. A zero return value indicates that no error has been encountered. The MESSAGE() function can be used to get further information.
Example
? error() 0