aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/exception/no_ssl_exception.rs
blob: b0470e58139033a4125c45414f83f5dd4047cf3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! ref: composer/src/Composer/Exception/NoSslException.php

use shirabe_php_shim::RuntimeException;

/// Specific exception for Composer\Util\HttpDownloader creation.
#[derive(Debug)]
pub struct NoSslException(pub RuntimeException);

impl NoSslException {
    pub fn new(message: String) -> Self {
        Self(RuntimeException::new(message))
    }
}

shirabe_php_shim::impl_php_exception!(NoSslException, 0, r"Composer\Exception\NoSslException");