Sha256: a9039ec543e37c6bb67bb090a129790db688eb61ea4eda078e192c78c9083fd3

Contents?: true

Size: 594 Bytes

Versions: 10

Compression:

Stored size: 594 Bytes

Contents

module Prosperity
  class Exception < ::Exception
  end

  class MissingScope < Exception
    def initialize
      super "You have asked for the scope of a metric with no scope."
    end
  end

  class MissingSql < Exception
    def initialize
      super "You have asked for the sql of a metric with no sql."
    end
  end

  class MissingValueAt < Exception
    def initialize
      super "You have asked for the value_at, but none was specified"
    end
  end

  class SqlMetricCannotHaveOption < Exception
    def initialize
      super "Sql metrics cannot have options"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
prosperity-0.0.11 lib/prosperity/exception.rb
prosperity-0.0.10 lib/prosperity/exception.rb
prosperity-0.0.9 lib/prosperity/exception.rb
prosperity-0.0.8 lib/prosperity/exception.rb
prosperity-0.0.7 lib/prosperity/exception.rb
prosperity-0.0.6 lib/prosperity/exception.rb
prosperity-0.0.5 lib/prosperity/exception.rb
prosperity-0.0.4 lib/prosperity/exception.rb
prosperity-0.0.3 lib/prosperity/exception.rb
prosperity-0.0.2 lib/prosperity/exception.rb