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

Class NoSuchComponent

include/Core/Script/Exceptions.hpp:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace 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 {

Callers 3

accessMethod · 0.85
getConstructorMethod · 0.85
GameObject.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected