lib/wialon_api/error.rb in wialon_api-0.0.6 vs lib/wialon_api/error.rb in wialon_api-0.0.7
- old
+ new
@@ -1,10 +1,9 @@
# encoding: utf-8
module WialonApi
class Error < StandardError
attr_reader :error_code
- attr_reader :error_messages
attr_reader :message
def initialize(data)
@error_code = data.error
@message = "Wialon server #{WialonApi.wialon_host} returned error #{error_code}: #{error_descriptions[@error_code.to_s]}"
@@ -29,8 +28,5 @@
'2014' => 'Selected user is a creator for some system objects, thus this user cannot be bound to a new account'
}
end
end
end
-
-
-