* A throw-class that is given when the script made a fatal error. */
| 14 | * A throw-class that is given when the script made a fatal error. |
| 15 | */ |
| 16 | class Script_FatalError { |
| 17 | public: |
| 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 | |
| 32 | private: |
| 33 | const std::string msg; ///< The error message. |
| 34 | }; |
| 35 | |
| 36 | #endif /* SCRIPT_FATALERROR_HPP */ |
no outgoing calls