blob: 0140dc47e829902b6281f0c92c6ec633e85b4e0c [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 void throw(mixed arg)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Abort execution. If the current program execution was
6 initiated by catch(), that catch expression will
7 return arg as error code.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 Calling throw() without previous catch() does not make sense
10 and will result in an ``throw without catch'' error.
MG Mud User88f12472016-06-24 23:31:02 +020011
Zesstra715ec202025-07-09 22:18:31 +020012EXAMPLES
13 catch(throw("aborting execution"));
14 This will just print the string "aborting execution".
MG Mud User88f12472016-06-24 23:31:02 +020015
Zesstra715ec202025-07-09 22:18:31 +020016SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020017 catch(E), raise_error(E)