Exception: Fluent::RedshiftOutput::RedshiftError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fluent/plugin/out_redshift.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ RedshiftError



356
357
358
359
360
361
362
363
364
365
# File 'lib/fluent/plugin/out_redshift.rb', line 356

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_errorObject

Returns the value of attribute pg_error.



367
368
369
# File 'lib/fluent/plugin/out_redshift.rb', line 367

def pg_error
  @pg_error
end