Package smartcard :: Package sw :: Module op21_ErrorChecker :: Class op21_ErrorChecker
[hide private]
[frames] | no frames]

Class op21_ErrorChecker

source code


Open platform 2.1 error checker.

This error checker raises the following exceptions:

This checker does not raise exceptions on undefined sw1 values, e.g.:

and on undefined sw2 values, e.g.:

Use another checker in the error checking chain to raise exceptions on these undefined values.

Instance Methods [hide private]
 
__call__(self, data, sw1, sw2)
Called to test data, sw1 and sw2 for error.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, data, sw1, sw2)
(Call operator)

source code 

Called to test data, sw1 and sw2 for error.

Parameters:
  • data - apdu response data
  • sw1, sw2 - apdu data status words

    Derived classes must raise a smartcard.sw.SWException upon error.

Overrides: ErrorChecker.ErrorChecker.__call__