blob: 4b27c5e66202feddb96de47896c7e88a37eaaa6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
//! ref: composer/vendor/symfony/console/Exception/CommandNotFoundException.php
use super::exception_interface::ExceptionInterface;
#[derive(Debug)]
pub struct CommandNotFoundException {
inner: shirabe_php_shim::InvalidArgumentException,
alternatives: Vec<String>,
}
impl CommandNotFoundException {
pub fn new(message: String, alternatives: Vec<String>, code: i64) -> Self {
Self {
inner: shirabe_php_shim::InvalidArgumentException::with_code(message, code),
alternatives,
}
}
pub fn get_alternatives(&self) -> &Vec<String> {
&self.alternatives
}
}
shirabe_php_shim::impl_php_exception!(
CommandNotFoundException,
inner,
r"Symfony\Component\Console\Exception\CommandNotFoundException"
);
impl ExceptionInterface for CommandNotFoundException {}
|