Exception: RedshiftError
- Inherits:
-
StandardError
- Object
- StandardError
- RedshiftError
- Defined in:
- lib/fluent/plugin/out_redshift_v2.rb
Instance Attribute Summary collapse
-
#pg_error ⇒ Object
Returns the value of attribute pg_error.
Instance Method Summary collapse
-
#initialize(msg) ⇒ RedshiftError
constructor
A new instance of RedshiftError.
Constructor Details
#initialize(msg) ⇒ RedshiftError
Returns a new instance of RedshiftError.
351 352 353 354 355 356 357 358 359 360 |
# File 'lib/fluent/plugin/out_redshift_v2.rb', line 351 def initialize(msg) case msg when PG::Error @pg_error = msg super(msg.to_s) set_backtrace(msg.backtrace) else super end end |
Instance Attribute Details
#pg_error ⇒ Object
Returns the value of attribute pg_error.
362 363 364 |
# File 'lib/fluent/plugin/out_redshift_v2.rb', line 362 def pg_error @pg_error end |