diff options
author | Rob Austein <sra@hactrn.net> | 2007-09-18 21:44:21 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-09-18 21:44:21 +0000 |
commit | 2c5df0fe0ecf1683bf2935d027411905035042b0 (patch) | |
tree | 259f542f3669c0855fe2b9a12e606f7df7bc0888 /scripts/rpki/exceptions.py | |
parent | f0d2933a30b05039919a3aecbb53e640d4c9c126 (diff) |
Start adding our own exceptions.
svn path=/scripts/rpki/cms.py; revision=988
Diffstat (limited to 'scripts/rpki/exceptions.py')
-rw-r--r-- | scripts/rpki/exceptions.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/rpki/exceptions.py b/scripts/rpki/exceptions.py new file mode 100644 index 00000000..76fa4c27 --- /dev/null +++ b/scripts/rpki/exceptions.py @@ -0,0 +1,30 @@ +# $Id$ + +"""Exception definitions for RPKI modules.""" + +class NotInDatabase(Exception): + """Lookup failed for an object expected to be in the database.""" + +class BadURISyntax(Exception): + """Illegal syntax for a URI.""" + +class BadStatusCode(Exception): + """Unrecognized protocol status code.""" + +class BadQuery(Exception): + """Unexpected protocol query.""" + +class MultipleROAsFound(Exception): + """Found multiple ROAs in a relationship that should be one-to-one.""" + +class CMSVerificationFailed(Exception): + """Verification of a CMS message failed.""" + +class HTTPRequestFailed(Exception): + """HTTP request failed.""" + +class DERObjectConversionError(Exception): + """Error trying to convert a DER-based object from one representation to another.""" + +class NotACertificateChain(Exception): + """Certificates don't form a proper chain.""" |