Exception: Inbox::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Inbox::APIError
- Defined in:
- lib/inbox.rb
Direct Known Subclasses
InvalidRequest, MessageRejected, SendingQuotaExceeded, ServiceUnavailable
Instance Attribute Summary collapse
-
#error_type ⇒ Object
Returns the value of attribute error_type.
Instance Method Summary collapse
-
#initialize(type, error) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(type, error) ⇒ APIError
Returns a new instance of APIError.
17 18 19 20 |
# File 'lib/inbox.rb', line 17 def initialize(type, error) super(error) self.error_type = type end |
Instance Attribute Details
#error_type ⇒ Object
Returns the value of attribute error_type.
16 17 18 |
# File 'lib/inbox.rb', line 16 def error_type @error_type end |