reactive_graph_plugin_api/error/
activation.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
5pub enum PluginActivationError {
6 #[error("The activation of the plugin failed: {0}")]
7 ActivationFailed(String),
8 #[error("The activation of the plugin failed because the plugin context is missing!")]
9 PluginRequiresMissingPluginContext,
10}
11
12#[derive(Debug, Error)]
14pub enum PluginDeactivationError {
15 #[error("The deactivation of the plugin failed!")]
16 DeactivationFailed,
17 #[error("The deactivation of the plugin failed because the plugin context is missing!")]
18 PluginRequiresMissingPluginContext,
19}