Exception: Graphiti::Errors::StatNotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(attribute, calculation) ⇒ StatNotFound

Returns a new instance of StatNotFound.



756
757
758
759
# File 'lib/graphiti/errors.rb', line 756

def initialize(attribute, calculation)
  @attribute = attribute
  @calculation = calculation
end

Instance Method Details

#messageObject



761
762
763
# File 'lib/graphiti/errors.rb', line 761

def message
  "No stat configured for calculation #{pretty(@calculation)} on attribute #{pretty(@attribute)}"
end