Exception: Top4R::RESTError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Top4R::RESTError
- Includes:
- ClassUtilMixin
- Defined in:
- lib/top4r/core.rb
Overview
ClassUtilMixin module
Direct Known Subclasses
Constant Summary collapse
- @@ATTRIBUTES =
[:code, :message, :uri, :error, :sub_code, :sub_msg]
Instance Method Summary collapse
-
#to_s ⇒ Object
Returns string in following format: “HTTP #@code: #@message at #@uri” For example, “HTTP 404: Resource Not Found at /i_am_crap.json”.
Methods included from ClassUtilMixin
Instance Method Details
#to_s ⇒ Object
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 |