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.



704
705
706
707
# File 'lib/graphiti/errors.rb', line 704

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

Instance Method Details

#messageObject



709
710
711
# File 'lib/graphiti/errors.rb', line 709

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