Exception: SmartChart::NoAttributeError

Inherits:
SmartChartError show all
Defined in:
lib/smart_chart/exceptions.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(chart, param) ⇒ NoAttributeError

Returns a new instance of NoAttributeError.



13
14
15
16
# File 'lib/smart_chart/exceptions.rb', line 13

def initialize(chart, param)
  chart_type = chart.class.to_s.sub(/^SmartChart::/, "")
  super("The #{chart_type} chart type does not accept the '#{param}' parameter")
end