catch

lpc4/lib/doc/efun/catch · 496 B

From the archive lpc4.05.14.tar.gz

Download the archive   « Back to the archive contents

NAME
	catch - catch any errors that may occur.
SYNTAX
	mixed catch(mixed expr);

DESCRIPTION
	Evaluate expr. If there is no error, 0 is returned. If there is a
	standard error, a string (with a leading '*') will be returned.
	The function throw(value) can be used to immediately return
	a string to a pending catch().

NOTA BENE
	The catch() is somewhat costly, and should not be used just anywhere.
	Rather it should be used at places where an error would destroy
	consistency.

SEE ALSO
	throw

Site Stats

Snippets: 1791
Codebases: 571