Exception: ActiveCampaignRb::ErrorProxy

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/active_campaign_rb/errors.rb

Overview

Proxy an exception to allow nil to be passed in

Author:

Direct Known Subclasses

ParsingError, TimeoutError

Instance Method Summary collapse

Constructor Details

#initialize(error = nil) ⇒ ErrorProxy

Returns a new instance of ErrorProxy.



46
47
48
49
# File 'lib/active_campaign_rb/errors.rb', line 46

def initialize(error = nil)
  self.error = error
  super
end

Instance Method Details

#messageObject



51
52
53
# File 'lib/active_campaign_rb/errors.rb', line 51

def message
  error ? error.message : super
end