Exception: Top4R::RESTError

Inherits:
RuntimeError
  • Object
show all
Includes:
ClassUtilMixin
Defined in:
lib/top4r/core.rb

Overview

ClassUtilMixin module

Direct Known Subclasses

ShopNotExistError, SuiteNotOrderedError

Constant Summary collapse

@@ATTRIBUTES =
[:code, :message, :uri, :error, :sub_code, :sub_msg]

Instance Method Summary collapse

Methods included from ClassUtilMixin

included

Instance Method Details

#to_sObject

Returns string in following format: “HTTP #@code: #@message at #@uri” For example, “HTTP 404: Resource Not Found at /i_am_crap.json”



47
48
49
# File 'lib/top4r/core.rb', line 47

def to_s
  "HTTP #{@code}: #{@message} at #{@uri}, sub_code: #{@sub_code}, sub_msg: #{@sub_msg}"
end