Exception: GirFFI::SignalNotFoundError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- GirFFI::SignalNotFoundError
- Defined in:
- lib/gir_ffi/signal_not_found_error.rb
Overview
Exception class to be raised when a signal is not found.
Instance Attribute Summary collapse
-
#signal_name ⇒ Object
readonly
Returns the value of attribute signal_name.
Instance Method Summary collapse
-
#initialize(signal_name, klass) ⇒ SignalNotFoundError
constructor
A new instance of SignalNotFoundError.
Constructor Details
#initialize(signal_name, klass) ⇒ SignalNotFoundError
Returns a new instance of SignalNotFoundError.
7 8 9 10 11 |
# File 'lib/gir_ffi/signal_not_found_error.rb', line 7 def initialize(signal_name, klass) @signal_name = signal_name @klass = klass super "Signal '#{signal_name}' not found in #{klass}" end |
Instance Attribute Details
#signal_name ⇒ Object (readonly)
Returns the value of attribute signal_name.
5 6 7 |
# File 'lib/gir_ffi/signal_not_found_error.rb', line 5 def signal_name @signal_name end |