MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Script_FatalError

Class Script_FatalError

src/script/script_fatalerror.hpp:16–34  ·  view source on GitHub ↗

* A throw-class that is given when the script made a fatal error. */

Source from the content-addressed store, hash-verified

14 * A throw-class that is given when the script made a fatal error.
15 */
16class Script_FatalError {
17public:
18 /**
19 * Creates a "fatal error" exception.
20 * @param msg The message describing the cause of the fatal error.
21 */
22 Script_FatalError(const std::string &msg) :
23 msg(msg)
24 {}
25
26 /**
27 * The error message associated with the fatal error.
28 * @return The error message.
29 */
30 const std::string &GetErrorMessage() const { return msg; }
31
32private:
33 const std::string msg; ///< The error message.
34};
35
36#endif /* SCRIPT_FATALERROR_HPP */

Callers 14

_reallocMethod · 0.85
operator()Method · 0.85
DoAllocMethod · 0.85
CheckLimitMethod · 0.85
FinalReleaseMethod · 0.85
DoCommandPrepMethod · 0.85
ConstructorMethod · 0.85
_clonedMethod · 0.85
SleepMethod · 0.85
_FillParamListMethod · 0.85
_GetEncodedTextMethod · 0.85

Calls

no outgoing calls

Tested by 1

FinalReleaseMethod · 0.68