throw

./efun/throw · 431 B

From the archive driver-docs-3.2@238-07-dec-93.tar.gz

Download the archive   « Back to the archive contents

SYNOPSIS
	void throw(mixed arg)

DESCRIPTION
	Abort execution. If the current program execution was
	initiated by catch(), that catch expression will
	return arg as error code.
	Calling throw() without previous catch() does not make sense
	and will result in an ``throw without catch'' error.

EXAMPLE
	catch(throw("aborting execution"));
	This will just print the string "aborting execution".
	
SEE ALSO
	catch(E), raise_error(E)

Site Stats

Snippets: 1791
Codebases: 571