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