| 9 | namespace obe::Script::Exceptions |
| 10 | { |
| 11 | class NoSuchComponent : public Exception |
| 12 | { |
| 13 | public: |
| 14 | NoSuchComponent(std::string_view componentType, std::string_view objectType, |
| 15 | std::string_view objectId, DebugInfo info) |
| 16 | : Exception("NoSuchComponent", info) |
| 17 | { |
| 18 | this->error("GameObject '{}' (type: '{}') has no {} component", objectId, |
| 19 | objectType, componentType); |
| 20 | this->hint("Try to check in the {}.obj.vili if you correctly created the " |
| 21 | "{} section", |
| 22 | objectType, componentType); |
| 23 | } |
| 24 | }; |
| 25 | |
| 26 | class ObjectDefinitionNotFound : public Exception |
| 27 | { |
no outgoing calls
no test coverage detected