Exception: ClickhouseRuby::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ClickhouseRuby::Error
- Defined in:
- lib/clickhouse_ruby/errors.rb
Overview
Base error class for all ClickhouseRuby errors All errors include context information to aid debugging
Direct Known Subclasses
ConfigurationError, ConnectionError, PoolError, QueryError, TypeCastError, Types::Parser::ParseError
Instance Attribute Summary collapse
-
#original_error ⇒ Exception?
readonly
The original exception that caused this error.
Instance Method Summary collapse
-
#initialize(message = nil, original_error: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, original_error: nil) ⇒ Error
Returns a new instance of Error.
12 13 14 15 |
# File 'lib/clickhouse_ruby/errors.rb', line 12 def initialize( = nil, original_error: nil) @original_error = original_error super() end |
Instance Attribute Details
#original_error ⇒ Exception? (readonly)
Returns the original exception that caused this error.
8 9 10 |
# File 'lib/clickhouse_ruby/errors.rb', line 8 def original_error @original_error end |