+
     h  c                   s   R t ^ RIHt  ! R R]4      t ! R R]4      t ! R R]4      t ! R R	]4      t ! R
 R]4      t ! R R]4      t	 ! R R]4      t
 ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )a  Smartcard module exceptions.

This module defines the exceptions raised by the smartcard module.

__author__ = "https://www.gemalto.com/"

Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com

This file is part of pyscard.

pyscard is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

pyscard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
)SCardGetErrorMessagec                   sF   a a ] tR t^t oRtRV 3R lltV 3R ltRtVtV ;t	# )SmartcardExceptionzBase class for smartcard exceptions.

smartcard exceptions are generated by the smartcard module and
shield scard (i.e. PCSC) exceptions raised by the scard module.

c                sL   < \         SV `  ! V.VO5!   \        V4      V n        R # )N)super__init__Zinthresult)selfmessager   args	__class__s   &&&*;/usr/lib64/python3.14/site-packages/smartcard/Exceptions.pyr   ZSmartcardException.__init__&   s     (4(7|    c                s   < \         SV `  4       pV P                  R8w  dQ   V'       d
   VR,          pV P                  pV^ 8  d
   VR,          pV\        V P                  4       RVR R2,          pV# )i   z: l        z (0xZ08XZ))r   __str__r   r    )r   Ztextr   r   s   &  r	   r   ZSmartcardException.__str__*   sj    w <<2llG{;&+DLL9:$wsm1MMDr
   r   )Z r   )
__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classdictcell__Z__classcell__)r   __classdict__s   @@r	   r   r      s     $ r
   r   c                   s    ] tR t^8tRtRtR# )CardConnectionExceptionz0Raised when a CardConnection class method fails. Nr   r   r   r   r   r   r   r
   r	   r   r   8   s    :r
   r   c                   s    ] tR t^>tRtRtR# )CardRequestExceptionz%Raised when a CardRequest wait fails.r   Nr   r   r
   r	   r   r   >   s    /r
   r   c                   s.   a  ] tR t^Dt o RtRR ltRtV tR# )CardRequestTimeoutExceptionz$Raised when a CardRequest times out.c                s<    \         P                  ! V R .VO5RV/  R# )zTime-out during card requestr   Nr   r   )r   r   r   s   &&*r	   r   Z$CardRequestTimeoutException.__init__G   s&    ##0	
DH	
:A	
r
   r   N)r   r   r   r   r   r   r   r   r   r      @r	   r   r   D   s     .
 
r
   r   c                   s    ] tR t^MtRtRtR# )CardServiceExceptionz-Raised when a CardService class method fails.r   Nr   r   r
   r	   r   r   M   s    7r
   r   c                   s    ] tR t^StRtRtR# )CardServiceStoppedExceptionz'Raised when the CardService was stoppedr   Nr   r   r
   r	   r    r    S   s    1r
   r    c                   s    ] tR t^YtRtRtR# )CardServiceNotFoundExceptionz(Raised when the CardService is not foundr   Nr   r   r
   r	   r!   r!   Y   s    2r
   r!   c                   s*   a  ] tR t^_t o RtR tRtV tR# )InvalidATRMaskLengthExceptionz5Raised when an ATR mask does not match an ATR length.c                @    \         P                  V R V,          4       R# )zInvalid ATR mask length: %sNr   )r   Zmask   &&r	   r   Z&InvalidATRMaskLengthException.__init__b   s    ##D*G$*NOr
   r   Nr   r   r   r	   r"   r"   _   s     ?P Pr
   r"   c                   s*   a  ] tR t^ft o RtR tRtV tR# )InvalidReaderExceptionz9Raised when trying to access an invalid smartcard reader.c                r#   )zInvalid reader: %sNr   )r   Z
readernamer$   r	   r   ZInvalidReaderException.__init__i   s    ##D*>*KLr
   r   Nr   r   r   r	   r%   r%   f   s     CM Mr
   r%   c                   s*   a  ] tR t^mt o RtR tRtV tR# )ListReadersExceptionz/Raised when smartcard readers cannot be listed.c                s6    \         P                  V R VR7       R# )zFailed to list readersr   Nr   )r   r   r$   r	   r   ZListReadersException.__init__p   s    ##D*BG#Tr
   r   Nr   r   r   r	   r&   r&   m   s     9U Ur
   r&   c                   s*   a  ] tR t^tt o RtR tRtV tR# )NoCardExceptionz,Raised when no card in is present in reader.c                s4    \         P                  WVR 7       R# )r   Nr   )r   r   r   s   &&&r	   r   ZNoCardException.__init__w   s    ##D7#Cr
   r   Nr   r   r   r	   r'   r'   t   s     6D Dr
   r'   c                   s*   a  ] tR t^{t o RtR tRtV tR# )NoReadersExceptionz/Raised when the system has no smartcard reader.c                s8    \         P                  ! V R .VO5!   R# )zNo reader foundNr   )r   r   s   &*r	   r   ZNoReadersException.__init__~   s    ##D*;CdCr
   r   Nr   r   r   r	   r(   r(   {   s     9D Dr
   r(   N)r   Zsmartcard.scardr    Z	Exceptionr   r   r   r   r   r    r!   r"   r%   r&   r'   r(   r   r
   r	   <module>r)      s   4 1 4	0 		- 	
"4 
	- 		"4 		#5 	P$6 PM/ MU- UD( DD+ Dr
   