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.



781
782
783
784
# File 'lib/graphiti/errors.rb', line 781

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

Instance Method Details

#messageObject



786
787
788
# File 'lib/graphiti/errors.rb', line 786

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