Exception: ChDB::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chdb/errors.rb,
ext/chdb/exception.c

Overview

Represents a base exception class for the ChDB module. This class inherits from StandardError and provides a common structure for other ChDB-specific exceptions.

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject (readonly)

A convenience for accessing the error code for this exception.



9
10
11
# File 'lib/chdb/errors.rb', line 9

def code
  @code
end

#sqlObject (readonly)

If the error is associated with a SQL query, this is the query



12
13
14
# File 'lib/chdb/errors.rb', line 12

def sql
  @sql
end