Exception: Caoutsearch::Search::ValueOverflow

Inherits:
StandardError
  • Object
show all
Defined in:
lib/caoutsearch/search/value_overflow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, value, limit) ⇒ ValueOverflow

Returns a new instance of ValueOverflow.



8
9
10
11
12
13
14
# File 'lib/caoutsearch/search/value_overflow.rb', line 8

def initialize(type, value, limit)
  @type = type
  @value = value
  @limit = limit

  super("the value #{value.inspect} exceeds the #{type} limit (#{limit})")
end

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



6
7
8
# File 'lib/caoutsearch/search/value_overflow.rb', line 6

def limit
  @limit
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/caoutsearch/search/value_overflow.rb', line 6

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/caoutsearch/search/value_overflow.rb', line 6

def value
  @value
end