Exception: SdkError

Version 1.3 - Updated on 10/20/2016

Contents

Overview

This is the usual error raised on any server related issues.

Direct Known Subclasses

Constructor Details

#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

Instance Attribute Details

#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.

Instance Method Details

#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.