Source code for cryptnox_cli.command.user_keys.hello.exceptions

# -*- coding: utf-8 -*-
"""
Exceptions Windows Hello can raise.
"""


[docs] class WindowsHelloExceptions(Exception): """Base exception for the class exceptions."""
[docs] class NotSupportedException(WindowsHelloExceptions): """There is no hardware support for Windows Hello."""
[docs] class UnknownErrorException(WindowsHelloExceptions): """An unknown error occurred."""
[docs] class NotFoundException(WindowsHelloExceptions): """The credential could not be found."""
[docs] class CanceledException(WindowsHelloExceptions): """The request was cancelled by the user."""
[docs] class UserPrefersPasswordException(WindowsHelloExceptions): """The user prefers to enter a password."""
[docs] class SecurityDeviceLockedException(WindowsHelloExceptions): """The security device was locked."""