blob: b6a6070a3c95f831cfb2a2332ef0e0497e781a8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//! 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 PluginBlockedException {
pub fn new(message: String) -> Self {
Self(UnexpectedValueException::new(message))
}
}
shirabe_php_shim::impl_php_exception!(
PluginBlockedException,
0,
r"Composer\Plugin\PluginBlockedException"
);
|