Exception: Mailchimp::APIError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mailchimp::APIError
- Defined in:
- lib/mailchimp/api_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#error ⇒ Object
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error, code) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(error, code) ⇒ APIError
Returns a new instance of APIError.
4 5 6 7 8 |
# File 'lib/mailchimp/api_error.rb', line 4 def initialize(error,code) super("Error from MailChimp API: #{error} (code #{code})") @error = error @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/mailchimp/api_error.rb', line 3 def code @code end |
#error ⇒ Object
Returns the value of attribute error.
3 4 5 |
# File 'lib/mailchimp/api_error.rb', line 3 def error @error end |