Exception: SmartChart::NoAttributeError
- Inherits:
-
SmartChartError
- Object
- StandardError
- SmartChartError
- SmartChart::NoAttributeError
- Defined in:
- lib/smart_chart/exceptions.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(chart, param) ⇒ NoAttributeError
constructor
A new instance of NoAttributeError.
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 |