Exception: Yandex::Translate::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Yandex::Translate::APIError
- Defined in:
- lib/api_error.rb
Instance Method Summary collapse
-
#initialize(code, message) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(code, message) ⇒ APIError
Returns a new instance of APIError.
3 4 5 6 |
# File 'lib/api_error.rb', line 3 def initialize(code, ) @code = code @message = end |