| 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 |