Exception: Smartcard::PCSC::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Smartcard::PCSC::Exception
- Defined in:
- lib/smartcard/pcsc/pcsc_exception.rb
Overview
Contains information about an exception at the PC/SC layer.
Instance Attribute Summary collapse
-
#pcsc_status ⇒ Object
readonly
The PC/SC error status that caused this error.
Instance Method Summary collapse
-
#initialize(error_status) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(error_status) ⇒ Exception
Returns a new instance of Exception.
3 4 5 6 |
# File 'lib/smartcard/pcsc/pcsc_exception.rb', line 3 def initialize(error_status) @pcsc_status = error_status super error_status.to_s end |
Instance Attribute Details
#pcsc_status ⇒ Object (readonly)
The PC/SC error status that caused this error.
9 10 11 |
# File 'lib/smartcard/pcsc/pcsc_exception.rb', line 9 def pcsc_status @pcsc_status end |