Dokumentation zu: raise_error(E)

HR Image


SYNOPSIS
        void raise_error(string arg)

DESCRIPTION
        Abort execution. If the current program execution was
        initiated by catch(), that catch expression will return arg as
        error code, else the arg will printed as error message.
        
        This is very similar to throw(), but while throw() is intended to be
        called inside catch(), raise_error() can be called anywhere.
        Furthermore, raise_error() includes the complete error handling
        with generation of a stack backtrace, making it a very expensive
        function.

SEE ALSO
        catch(E), throw(E)

Die Seite ist auch in Deutsch vorhanden.

Start » Magierhandbuch » Docu » Efun » Raise_error Letzte Generierung: 25.04.2021, 01:58
Email an: mud@wl.mud.de
Valid HTML 4.01!