Commit 2ada1b23 authored by Vincent Pelletier's avatar Vincent Pelletier

extensions: Use intended base exception class.

parent 896a3462
...@@ -20,16 +20,16 @@ class CertificateAuthorityException(Exception): ...@@ -20,16 +20,16 @@ class CertificateAuthorityException(Exception):
"""Base exception""" """Base exception"""
pass pass
class NoStorage(Exception): class NoStorage(CertificateAuthorityException):
"""No space in storage""" """No space in storage"""
pass pass
class NotFound(Exception): class NotFound(CertificateAuthorityException):
"""Requested resource does not exist""" """Requested resource does not exist"""
pass pass
class Found(Exception): class Found(CertificateAuthorityException):
"""Requested ID is already in use""" """Requested ID is already in use"""
class BadSignature(Exception): class BadSignature(CertificateAuthorityException):
"""Non-x509 signature check failed""" """Non-x509 signature check failed"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment