Module: YoudaoFanyi::Errors

Defined in:
lib/youdao_fanyi/errors.rb

Class Method Summary collapse

Class Method Details

.error_message(error_code) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/youdao_fanyi/errors.rb', line 5

def self.error_message(error_code)
  "ERROR:" + case error_code.to_i
  when 50
    "key or keyfrom error!"
  else
    "unknow error!"
  end
end