Exception: Inbox::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Inbox::APIError
- Defined in:
- lib/inbox.rb
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.
15 16 17 18 |
# File 'lib/inbox.rb', line 15 def initialize(type, error) super(error) self.error_type = type end |
Instance Attribute Details
#error_type ⇒ Object
Returns the value of attribute error_type.
14 15 16 |
# File 'lib/inbox.rb', line 14 def error_type @error_type end |