Exception: Telegem::API::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Telegem::API::APIError
- Defined in:
- lib/api/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, code = nil) ⇒ APIError
Returns a new instance of APIError.
127 128 129 130 |
# File 'lib/api/client.rb', line 127 def initialize(, code = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
125 126 127 |
# File 'lib/api/client.rb', line 125 def code @code end |