class ActiveTriples::UndefinedPropertyError

An error class to be raised when attempting to reflect on an undefined property.

@example

begin 
  my_source.set_value(:fake_property, 'blah')
rescue ActiveTriples::UndefinedPropertyError => e
  e.property => 'fake_property'
  e.klass => 'MySourceClass'
end

Attributes

klass[R]
property[R]

Public Class Methods

new(property, klass) click to toggle source
# File lib/active_triples/undefined_property_error.rb, line 18
def initialize(property, klass)
  @property = property
  @klass = klass
end

Public Instance Methods

message() click to toggle source
# File lib/active_triples/undefined_property_error.rb, line 23
def message
  "The property `#{@property}` is not defined on class '#{@klass}'"
end