Exception: ActiveSalesforce::ASFError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/active_record/connection_adapters/recording_binding.rb

Overview

This is the main error class used by ActiveSalesforce Adapter.

Direct Known Subclasses

ASFRecordingBindingError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger, message, fault = nil) ⇒ ASFError

Returns a new instance of ASFError.



26
27
28
29
30
31
32
# File 'lib/active_record/connection_adapters/recording_binding.rb', line 26

def initialize(logger, message, fault = nil)
  super message
  
  @fault = fault
  
  logger.debug("\nASFError:\n   message='#{message}'\n   fault='#{fault}'\n\n")
end

Instance Attribute Details

#faultObject (readonly)

Returns the value of attribute fault.



24
25
26
# File 'lib/active_record/connection_adapters/recording_binding.rb', line 24

def fault
  @fault
end