aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/invalid_repository_exception.rs
blob: ed84759c5a8bfcfb549cc10d4205950d93505495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! ref: composer/src/Composer/Repository/InvalidRepositoryException.php

use shirabe_php_shim::Exception;

/// Exception thrown when a package repository is utterly broken
#[derive(Debug)]
pub struct InvalidRepositoryException(pub Exception);

impl InvalidRepositoryException {
    pub fn new(message: String) -> Self {
        Self(Exception::new(message))
    }
}

shirabe_php_shim::impl_php_exception!(
    InvalidRepositoryException,
    0,
    r"Composer\Repository\InvalidRepositoryException"
);