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