yubihsm.exceptions

Exceptions thrown by this library.

Exceptions

YubiHsmError

Baseclass for YubiHSM errors.

YubiHsmConnectionError

The connection to the YubiHSM failed.

YubiHsmDeviceError

The YubiHSM returned an error code.

YubiHsmInvalidRequestError

The request was not able to be sent to the YubiHSM.

YubiHsmInvalidResponseError

The YubiHSM returned an unexpected response.

YubiHsmAuthenticationError

Authentication failed.

Module Contents

exception yubihsm.exceptions.YubiHsmError[source]

Bases: Exception

Baseclass for YubiHSM errors.

exception yubihsm.exceptions.YubiHsmConnectionError[source]

Bases: YubiHsmError

The connection to the YubiHSM failed.

exception yubihsm.exceptions.YubiHsmDeviceError(code)[source]

Bases: YubiHsmError

The YubiHSM returned an error code.

Parameters:

code (int) – The device error code.

code
exception yubihsm.exceptions.YubiHsmInvalidRequestError[source]

Bases: YubiHsmError

The request was not able to be sent to the YubiHSM.

exception yubihsm.exceptions.YubiHsmInvalidResponseError[source]

Bases: YubiHsmError

The YubiHSM returned an unexpected response.

exception yubihsm.exceptions.YubiHsmAuthenticationError[source]

Bases: YubiHsmError

Authentication failed.