reactive_graph_plugin_api/error/
activation.rs

1use thiserror::Error;
2
3// TODO: Add more specific error types
4#[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// TODO: Add more specific error types
13#[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}