aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/process/exception/process_failed_exception.rs
blob: 8957226970df6c4c142775a427f9feadcfa256ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! ref: composer/vendor/symfony/process/Exception/ProcessFailedException.php

use crate::symfony::process::process::Process;

#[derive(Debug)]
pub struct ProcessFailedException {
    pub message: String,
    pub code: i64,
}

impl ProcessFailedException {
    pub fn new(_process: &Process) -> Self {
        todo!()
    }
}

impl std::fmt::Display for ProcessFailedException {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.message)
    }
}

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