EmuException - DragoniteSpam/Emu GitHub Wiki
EmuException is my official favorite class name in the entire framework. It is also a struct representing error messages when something goes wrong.
Constructor
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.