OpenTTD Source
20241121-master-g67a0fccfad
|
A throw-class that is given when the script made a fatal error. More...
#include <script_fatalerror.hpp>
Public Member Functions | |
Script_FatalError (const std::string &msg) | |
Creates a "fatal error" exception. More... | |
const std::string & | GetErrorMessage () const |
The error message associated with the fatal error. More... | |
Private Attributes | |
const std::string | msg |
The error message. | |
A throw-class that is given when the script made a fatal error.
Definition at line 16 of file script_fatalerror.hpp.
|
inline |
Creates a "fatal error" exception.
msg | The message describing the cause of the fatal error. |
Definition at line 22 of file script_fatalerror.hpp.
|
inline |
The error message associated with the fatal error.
Definition at line 30 of file script_fatalerror.hpp.
References msg.
Referenced by ScriptInstance::Initialize(), ScriptInstance::LoadOnStack(), and ScriptInstance::Save().