Exception: Yandex::Translate::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/api_error.rb

Instance Method Summary collapse

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, message)
  @code = code
  @message = message
end