Exception: Error::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Error::APIError
- Defined in:
- lib/momoapi-ruby/errors.rb
Instance Method Summary collapse
-
#initialize(message, code) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, code) ⇒ APIError
Returns a new instance of APIError.
7 8 9 10 |
# File 'lib/momoapi-ruby/errors.rb', line 7 def initialize(, code) @code = code super("Error - code #{code}, message: #{}") end |