From 2ada1b23979ff8b8f19ca3f6ff0182edbd106959 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Wed, 29 Mar 2017 22:36:48 +0900 Subject: [PATCH] extensions: Use intended base exception class. --- caucase/exceptions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/caucase/exceptions.py b/caucase/exceptions.py index 5833b3f..a0095f3 100644 --- a/caucase/exceptions.py +++ b/caucase/exceptions.py @@ -20,16 +20,16 @@ class CertificateAuthorityException(Exception): """Base exception""" pass -class NoStorage(Exception): +class NoStorage(CertificateAuthorityException): """No space in storage""" pass -class NotFound(Exception): +class NotFound(CertificateAuthorityException): """Requested resource does not exist""" pass -class Found(Exception): +class Found(CertificateAuthorityException): """Requested ID is already in use""" -class BadSignature(Exception): +class BadSignature(CertificateAuthorityException): """Non-x509 signature check failed""" -- 2.30.9