How to use the sshpubkeys.exceptions.InvalidOptionsException function in sshpubkeys

To help you get started, we’ve selected a few sshpubkeys examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ojarva / python-sshpubkeys / sshpubkeys / exceptions.py View on Github external
"""Key type is invalid or unrecognized."""


class MalformedDataException(InvalidKeyError):
    """The key is invalid - unable to parse the data. The data may be corrupted, truncated, or includes extra content that is not allowed."""


class MalformedDataError(MalformedDataException):
    """The key is invalid - unable to parse the data. The data may be corrupted, truncated, or includes extra content that is not allowed."""


class InvalidOptionsException(MalformedDataError):
    """Options string is invalid: it contains invalid characters, unrecognized options, or is otherwise malformed."""


class InvalidOptionsError(InvalidOptionsException):
    """Options string is invalid: it contains invalid characters, unrecognized options, or is otherwise malformed."""


class InvalidOptionNameException(InvalidOptionsError):
    """Invalid option name (contains disallowed characters, or is unrecognized.)."""


class InvalidOptionNameError(InvalidOptionNameException):
    """Invalid option name (contains disallowed characters, or is unrecognized.)."""


class UnknownOptionNameException(InvalidOptionsError):
    """Unrecognized option name."""


class UnknownOptionNameError(UnknownOptionNameException):