1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{error::Error, fmt::Display};

pub use io_plugin_macros::*;

use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct IOPluginError(pub String);

impl Display for IOPluginError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.write_str(&self.0)
    }
}

impl Error for IOPluginError {}