Exception: SurfaceMaster::CommunicationError
- Inherits:
-
GenericError
- Object
- StandardError
- GenericError
- SurfaceMaster::CommunicationError
- Defined in:
- lib/surface_master/errors.rb
Overview
Error raised when anything fails while communicating with a device.
Instance Attribute Summary collapse
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(e) ⇒ CommunicationError
constructor
A new instance of CommunicationError.
Constructor Details
#initialize(e) ⇒ CommunicationError
Returns a new instance of CommunicationError.
22 23 24 25 |
# File 'lib/surface_master/errors.rb', line 22 def initialize(e) super(e.portmidi_error) self.source = e end |
Instance Attribute Details
#source ⇒ Object
Returns the value of attribute source.
21 22 23 |
# File 'lib/surface_master/errors.rb', line 21 def source @source end |