Exception: ActiveCampaignRb::ErrorProxy
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ActiveCampaignRb::ErrorProxy
- Defined in:
- lib/active_campaign_rb/errors.rb
Overview
Proxy an exception to allow nil to be passed in
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(error = nil) ⇒ ErrorProxy
constructor
A new instance of ErrorProxy.
- #message ⇒ Object
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
#message ⇒ Object
51 52 53 |
# File 'lib/active_campaign_rb/errors.rb', line 51 def error ? error. : super end |