aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/repository_security_exception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/repository/repository_security_exception.rs')
-rw-r--r--crates/shirabe/src/repository/repository_security_exception.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/shirabe/src/repository/repository_security_exception.rs b/crates/shirabe/src/repository/repository_security_exception.rs
index c59b793..b517cad 100644
--- a/crates/shirabe/src/repository/repository_security_exception.rs
+++ b/crates/shirabe/src/repository/repository_security_exception.rs
@@ -5,3 +5,11 @@ use shirabe_php_shim::Exception;
/// Thrown when a security problem, like a broken or missing signature
#[derive(Debug)]
pub struct RepositorySecurityException(pub Exception);
+
+impl std::fmt::Display for RepositorySecurityException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ self.0.fmt(f)
+ }
+}
+
+impl std::error::Error for RepositorySecurityException {}