
                         R   S r  " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rg) zExceptions that can be raised by the pyu2f library.

All exceptions that can be raised by the pyu2f library.  Most of these
are internal coditions, but U2FError and NoDeviceFoundError are public
errors that clients should expect to handle.
c                       \ rS rSrSrg)NoDeviceFoundError    N__name__
__module____qualname____firstlineno____static_attributes__r       'platform/bq/third_party/pyu2f/errors.pyr   r          r   r   c                   D   ^  \ rS rSrSrSrSrSrSrSr	S
U 4S jjr
S	rU =r$ )U2FError                      c                 n   > Xl         U(       a  X l        [        [        U ]  SU[        U5      4-  5        g )NzU2F Error code: %d (cause: %s))codecausesuperr   __init__str)selfr   r   	__class__s      r   r   U2FError.__init__$   s3    Ij	(D"#C$(#e*#5$6 7r   )r   r   )N)r   r   r	   r
   OKOTHER_ERRORBAD_REQUESTCONFIGURATION_UNSUPPORTEDDEVICE_INELIGIBLETIMEOUTr   r   __classcell__r   s   @r   r   r      s-    "++'7 7r   r   c                       \ rS rSrSrSrg)HidError,   z)Errors in the hid usb transport protocol.r   Nr   r   r	   r
   __doc__r   r   r   r   r*   r*   ,   s    1r   r*   c                       \ rS rSrSrg)InvalidPacketError1   r   Nr   r   r   r   r/   r/   1   r   r   r/   c                       \ rS rSrSrSrg)HardwareError5   zCErrors in the security key hardware that are transport independent.r   Nr,   r   r   r   r2   r2   5   s    Kr   r2   c                       \ rS rSrSrg)InvalidRequestError:   r   Nr   r   r   r   r5   r5   :   r   r   r5   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )	ApduError>   c                 L   > Xl         X l        [        [        U ]  SX4-  5        g )NzDevice returned status: %d %d)sw1sw2r   r8   r   )r   r;   r<   r   s      r   r   ApduError.__init__@   s)    HH	)T#$C%(J%/ 0r   )r;   r<   )r   r   r	   r
   r   r   r'   r(   s   @r   r8   r8   >   s    0 0r   r8   c                       \ rS rSrSrg)TUPRequiredErrorG   r   Nr   r   r   r   r?   r?   G   r   r   r?   c                       \ rS rSrSrg)InvalidKeyHandleErrorK   r   Nr   r   r   r   rB   rB   K   r   r   rB   c                       \ rS rSrSrg)UnsupportedVersionExceptionO   r   Nr   r   r   r   rE   rE   O   r   r   rE   c                       \ rS rSrSrg)InvalidCommandErrorS   r   Nr   r   r   r   rH   rH   S   r   r   rH   c                       \ rS rSrSrg)InvalidResponseErrorW   r   Nr   r   r   r   rK   rK   W   r   r   rK   c                       \ rS rSrSrg)InvalidModelError[   r   Nr   r   r   r   rN   rN   [   r   r   rN   c                       \ rS rSrSrg)
OsHidError_   r   Nr   r   r   r   rQ   rQ   _   r   r   rQ   c                       \ rS rSrSrg)PluginErrorc   r   Nr   r   r   r   rT   rT   c   r   r   rT   N)r-   	Exceptionr   r   r*   r/   r2   r5   r8   r?   rB   rE   rH   rK   rN   rQ   rT   r   r   r   <module>rW      s     7y 7 y 
 I 
- 0 0} M ) ) 9 	  ) r   