Exception: PgPipeline::QueryError
- Defined in:
- lib/pg_pipeline/errors.rb
Instance Attribute Summary collapse
-
#cause_result ⇒ Object
readonly
Returns the value of attribute cause_result.
Instance Method Summary collapse
- #clear_result! ⇒ Object
-
#initialize(message, cause_result: nil) ⇒ QueryError
constructor
A new instance of QueryError.
Constructor Details
#initialize(message, cause_result: nil) ⇒ QueryError
Returns a new instance of QueryError.
19 20 21 22 |
# File 'lib/pg_pipeline/errors.rb', line 19 def initialize(, cause_result: nil) super() @cause_result = cause_result end |
Instance Attribute Details
#cause_result ⇒ Object (readonly)
Returns the value of attribute cause_result.
17 18 19 |
# File 'lib/pg_pipeline/errors.rb', line 17 def cause_result @cause_result end |
Instance Method Details
#clear_result! ⇒ Object
24 25 26 27 |
# File 'lib/pg_pipeline/errors.rb', line 24 def clear_result! @cause_result&.clear if @cause_result.respond_to?(:clear) @cause_result = nil end |