Exception: Caoutsearch::Search::ValueOverflow
- Inherits:
-
StandardError
- Object
- StandardError
- Caoutsearch::Search::ValueOverflow
- Defined in:
- lib/caoutsearch/search/value_overflow.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(type, value, limit) ⇒ ValueOverflow
constructor
A new instance of ValueOverflow.
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
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
6 7 8 |
# File 'lib/caoutsearch/search/value_overflow.rb', line 6 def limit @limit end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/caoutsearch/search/value_overflow.rb', line 6 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/caoutsearch/search/value_overflow.rb', line 6 def value @value end |