blob: fc25c007b6f17b1ac78182369f28b3c4c3c0564f [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrab6ac9f62020-01-21 11:11:16 +01002 void raise_error(string 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 return arg as
7 error code, else the arg will printed as error message.
8
9 This is very similar to throw(), but while throw() is intended to be
10 called inside catch(), raise_error() can be called anywhere.
11 Furthermore, raise_error() includes the complete error handling
12 with generation of a stack backtrace, making it a very expensive
13 function.
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020016 catch(E), throw(E)