Exception: Smartcard::PCSC::Exception

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/smartcard/pcsc/pcsc_exception.rb

Overview

Contains information about an exception at the PC/SC layer.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_statusObject (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