Sha256: 34eb9a0687ef81e48184630892abfa2ebe3843a5ab749215ec882fbb93d83e45

Contents?: true

Size: 875 Bytes

Versions: 34

Compression:

Stored size: 875 Bytes

Contents

module PulseMeter
  module Visualize
    module DSL
      class Error < StandardError; end      

      class NoWidgets < Error; end

      class BadSensorName < Error
        def initialize(name)
          super("Bad sensor name: `#{name}'")
        end
      end

      class BadWidgetName < Error
        def initialize(name)
          super("Bad widget name: `#{name}'")
        end
      end

      class BadWidgetWidth < Error
        def initialize(width)
          super("Bad widget width: `#{width}'")
        end
      end

      class BadWidgetRedrawInterval < Error
        def initialize(redraw_interval)
          super("Bad widget redraw_interval: `#{redraw_interval}'")
        end
      end

      class BadWidgetTimeSpan < Error
        def initialize(timespan)
          super("Bad widget timespan: `#{timespan}'")
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
pulse_meter_visualizer-0.4.22 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.21 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.20 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.19 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.18 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.17 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.16 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.15 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.14 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.13 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.12 lib/pulse_meter/visualize/dsl/errors.rb
pulse_meter_visualizer-0.4.11 lib/pulse_meter/visualize/dsl/errors.rb
pulse-meter-0.4.9 lib/pulse-meter/visualize/dsl/errors.rb
pulse-meter-0.4.8 lib/pulse-meter/visualize/dsl/errors.rb
pulse-meter-0.4.7 lib/pulse-meter/visualize/dsl/errors.rb
pulse-meter-0.4.6 lib/pulse-meter/visualize/dsl/errors.rb
pulse-meter-0.4.5 lib/pulse-meter/visualize/dsl/errors.rb
pulse-meter-0.4.4 lib/pulse-meter/visualize/dsl/errors.rb
pulse-meter-0.4.3 lib/pulse-meter/visualize/dsl/errors.rb
pulse-meter-0.4.2 lib/pulse-meter/visualize/dsl/errors.rb