Source code for securid.exceptions

#!/usr/bin/env python

__all__ = [
    "ParseException",
    "InvalidToken",
    "InvalidSignature",
    "InvalidSeed",
    "InvalidSerial",
]


[docs] class ParseException(Exception): """ This is raised in case of error parsing file """ pass
[docs] class InvalidToken(Exception): """ This is raised in case of invalid token """ pass
[docs] class InvalidSignature(Exception): """ This is raised when signature verification fails. This can occur when password is required for decrypting the token. """
[docs] class InvalidSeed(Exception): """ This is raised when the seed is missing or invalid. """
[docs] class InvalidSerial(Exception): """ This is raised when the serial is missing or invalid. """