Sha256: 38cd315a1a7758f14a17202c4b4ebf83167e5ed726fd51e043fe8a6ef4f63105

Contents?: true

Size: 598 Bytes

Versions: 15

Compression:

Stored size: 598 Bytes

Contents

module Ardm
  class Property
    # Exception raised when Ardm is about to work with
    # invalid property values.
    class InvalidValueError < StandardError
      attr_reader :property, :value

      def initialize(property, value)
        msg = "Invalid value %s for property %s (%s) on model %s" %
          [ value.inspect,
            property.name.inspect,
            property.class.name,
            property.model.name
          ]
        super(msg)
        @property = property
        @value = value
      end

    end # class InvalidValueError
  end # class Property
end # module Ardm

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ardm-0.4.0.ar427 lib/ardm/property/invalid_value_error.rb
ardm-0.4.0 lib/ardm/property/invalid_value_error.rb
ardm-0.3.2 lib/ardm/property/invalid_value_error.rb
ardm-0.3.1 lib/ardm/property/invalid_value_error.rb
ardm-0.3.0 lib/ardm/property/invalid_value_error.rb
ardm-0.2.7 lib/ardm/property/invalid_value_error.rb
ardm-0.2.6 lib/ardm/property/invalid_value_error.rb
ardm-0.2.5 lib/ardm/property/invalid_value_error.rb
ardm-0.2.4 lib/ardm/property/invalid_value_error.rb
ardm-0.2.3 lib/ardm/property/invalid_value_error.rb
ardm-0.2.2 lib/ardm/property/invalid_value_error.rb
ardm-0.2.1 lib/ardm/property/invalid_value_error.rb
ardm-0.2.0 lib/ardm/property/invalid_value_error.rb
ardm-0.1.0 lib/ardm/property/invalid_value_error.rb
ardm-0.0.1 lib/ardm/property/invalid_value_error.rb