aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/invalid_repository_exception.rs
blob: d66ed1a3de18fe2ed1a2ed0c7c860945c1fa29ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! 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 std::fmt::Display for InvalidRepositoryException {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        self.0.fmt(f)
    }
}

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