Exception: ClickhouseRuby::Types::Parser::ParseError
- Defined in:
- lib/clickhouse_ruby/types/parser.rb
Overview
Error raised when parsing fails
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, position: nil, input: nil) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, position: nil, input: nil) ⇒ ParseError
Returns a new instance of ParseError.
46 47 48 49 50 51 52 |
# File 'lib/clickhouse_ruby/types/parser.rb', line 46 def initialize(, position: nil, input: nil) @position = position @input = input = position ? "#{message} at position #{position}" : += ": '#{input}'" if input super() end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
44 45 46 |
# File 'lib/clickhouse_ruby/types/parser.rb', line 44 def input @input end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
44 45 46 |
# File 'lib/clickhouse_ruby/types/parser.rb', line 44 def position @position end |