MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / NoSuchComponent

Method NoSuchComponent

include/Core/Script/Exceptions.hpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

errorMethod · 0.45
hintMethod · 0.45

Tested by

no test coverage detected