Exception: SmartChart::MissingRequiredAttributeError

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(chart, param) ⇒ MissingRequiredAttributeError

Returns a new instance of MissingRequiredAttributeError.



29
30
31
32
# File 'lib/smart_chart/exceptions.rb', line 29

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