Exception: ActiveCampaign::ErrorProxy

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_campaign/errors.rb

Overview

Proxy an exception to allow nil to be passed in

Author:

Direct Known Subclasses

ParsingError

Instance Method Summary collapse

Constructor Details

#initialize(error = nil) ⇒ ErrorProxy

Returns a new instance of ErrorProxy.



57
58
59
# File 'lib/active_campaign/errors.rb', line 57

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

Instance Method Details

#messageObject



61
62
63
# File 'lib/active_campaign/errors.rb', line 61

def message
  error ? error.message : super
end