blob: c135efb27606649e6a3266a735f74ad32474c689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//! ref: composer/src/Composer/DependencyResolver/SolverBugException.php
use shirabe_php_shim::RuntimeException;
#[derive(Debug)]
pub struct SolverBugException(pub RuntimeException);
impl SolverBugException {
pub fn new(message: String) -> Self {
let full_message = format!(
"{}\nThis exception was most likely caused by a bug in Composer.\n\
Please report the command you ran, the exact error you received, and your composer.json on https://github.com/composer/composer/issues - thank you!\n",
message
);
SolverBugException(RuntimeException {
message: full_message,
code: 0,
})
}
}
|