-
Notifications
You must be signed in to change notification settings - Fork 3
EmuException
Michael edited this page Jun 12, 2020
·
1 revision
EmuException is my official favorite class name in the entire framework. It is also a struct representing error messages when something goes wrong.
EmuException(message, longMessage)
Parameter | Type | Description |
---|---|---|
message | string | A brief description of the error |
longMessage | string | A longer description of the error |
EmuExceptions are designed to work the same way as exceptions generated by GML. They contain a message
string and a longMessage
string which are specified in the constructor, a script
string which contains the name of the script where the exception originated, and a stacktrace
array containing the current call stack. Like other GameMaker exceptions, they can be caught with a try-catch block and handled appropriately.