aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/exception/no_ssl_exception.rs
blob: 968ecfd7707e527dfc65337573684e05fd7cd5a3 (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 std::fmt::Display for NoSslException {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        self.0.fmt(f)
    }
}

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