# -*- coding: utf-8 -*- """\ © Copyright. All rights reserved. """ from __future__ import unicode_literals class CryptError(Exception): def __init__(self, exit_code, outs, errs): super().__init__(exit_code, outs, errs) self.exit_code = exit_code self.outs = outs self.errs = errs class DecryptError(CryptError): pass class EncryptError(CryptError): pass class EncryptionKeyNotFound(DecryptError, EncryptError): pass