Exception: ActiveTriples::UndefinedPropertyError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ActiveTriples::UndefinedPropertyError
- Defined in:
- lib/active_triples/undefined_property_error.rb
Overview
An error class to be raised when attempting to reflect on an undefined property.
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#property ⇒ Object
readonly
Returns the value of attribute property.
Instance Method Summary collapse
-
#initialize(property, klass) ⇒ UndefinedPropertyError
constructor
A new instance of UndefinedPropertyError.
- #message ⇒ Object
Constructor Details
#initialize(property, klass) ⇒ UndefinedPropertyError
Returns a new instance of UndefinedPropertyError.
18 19 20 21 |
# File 'lib/active_triples/undefined_property_error.rb', line 18 def initialize(property, klass) @property = property @klass = klass end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
16 17 18 |
# File 'lib/active_triples/undefined_property_error.rb', line 16 def klass @klass end |
#property ⇒ Object (readonly)
Returns the value of attribute property.
16 17 18 |
# File 'lib/active_triples/undefined_property_error.rb', line 16 def property @property end |
Instance Method Details
#message ⇒ Object
23 24 25 |
# File 'lib/active_triples/undefined_property_error.rb', line 23 def "The property `#{@property}` is not defined on class '#{@klass}'" end |