Exception: CFC::Errors::MissingProperty

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cfc/errors/missing_property.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ MissingProperty

Returns a new instance of MissingProperty.



9
10
11
# File 'lib/cfc/errors/missing_property.rb', line 9

def initialize(message)
  super
end

Class Method Details

.default_message(obj, property) ⇒ Object



4
5
6
7
# File 'lib/cfc/errors/missing_property.rb', line 4

def self.default_message(obj, property)
  "This #{obj.class.name} does not have a `#{property}' property. If you are accessing this object from a relationship on " \
  "another object, the property may not have been fetched."
end