Thrown when a plugin attempts to use a provided service before said service has been injected into the plugin (during init).
This usually happens when a plugin attempts to use a service in its constructor, since plugins are initialized after instantiation.
Example
classTestPluginextendsConversationPlugin { constructor() { super(); this.conversation.history.setContext(...); // This throws a PluginNotInitializedException }
init(...) { this.conversation.history.setContext(...); // This works } }
Thrown when a plugin attempts to use a provided service before said service has been injected into the plugin (during
init
). This usually happens when a plugin attempts to use a service in its constructor, since plugins are initialized after instantiation.Example