Exception: SearchSyntax::DuplicateParamError
- Inherits:
-
StandardError
- Object
- StandardError
- SearchSyntax::DuplicateParamError
- Defined in:
- lib/search_syntax/errors.rb
Instance Attribute Summary collapse
-
#finish ⇒ Object
readonly
Returns the value of attribute finish.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize(name:, start:, finish:) ⇒ DuplicateParamError
constructor
A new instance of DuplicateParamError.
Constructor Details
#initialize(name:, start:, finish:) ⇒ DuplicateParamError
Returns a new instance of DuplicateParamError.
7 8 9 10 11 12 13 |
# File 'lib/search_syntax/errors.rb', line 7 def initialize(name:, start:, finish:) @name = name @start = start @finish = finish super("Duplicate parameter '#{name}' at position #{start}.") end |
Instance Attribute Details
#finish ⇒ Object (readonly)
Returns the value of attribute finish.
5 6 7 |
# File 'lib/search_syntax/errors.rb', line 5 def finish @finish end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/search_syntax/errors.rb', line 5 def name @name end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
5 6 7 |
# File 'lib/search_syntax/errors.rb', line 5 def start @start end |