Exception: Fluent::RedshiftOutput::RedshiftError
- Inherits:
-
StandardError
- Object
- StandardError
- Fluent::RedshiftOutput::RedshiftError
- Defined in:
- lib/fluent/plugin/out_redshift-out.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.
273 274 275 276 277 278 279 280 281 282 |
# File 'lib/fluent/plugin/out_redshift-out.rb', line 273 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.
284 285 286 |
# File 'lib/fluent/plugin/out_redshift-out.rb', line 284 def pg_error @pg_error end |