Device solutions
End to end solutions
Product accelerators
Get Started
APIs
IoT Devices
Version 1.6 - Updated on 03/23/2017
#initialize(error, http_response = nil, user_error = nil) ⇒ SdkError
#error ⇒ Object
#http_response ⇒ Object
#user_error ⇒ Object
#to_s ⇒ Object
This is the usual error raised on any server related issues.
SdkAuthError
SdkNotModified
Returns a new instance of the SdkError.
SdkError
def initialize(error, http_response=nil, user_error=nil) @error = error @http_response = http_response @user_error = user_error end
Returns the value of the attribute error.
Returns the value of the attribute http_response.
http_response
Returns the value of the attribute user_error.
user_error
def to_s return "#{user_error} (#{error})" if user_error "#{error}" end
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.