aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/plugin_blocked_exception.rs
blob: cf3c7ce247d6bec7047e6d3bc741c558b6d14428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! ref: composer/src/Composer/Plugin/PluginBlockedException.php

use shirabe_php_shim::UnexpectedValueException;

// TODO(plugin): PluginBlockedException is a part of Plugin API.
#[derive(Debug)]
pub struct PluginBlockedException(pub UnexpectedValueException);

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

impl std::error::Error for PluginBlockedException {}