Exception: TogoWS::HTTPError
- Defined in:
- lib/togows/error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message_text ⇒ Object
readonly
Returns the value of attribute message_text.
Instance Method Summary collapse
-
#initialize(code, message_text, body) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(code, message_text, body) ⇒ HTTPError
Returns a new instance of HTTPError.
9 10 11 12 13 14 |
# File 'lib/togows/error.rb', line 9 def initialize(code, , body) @code = code.to_i @message_text = @body = body.to_s super("#{code} #{}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/togows/error.rb', line 7 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/togows/error.rb', line 7 def code @code end |
#message_text ⇒ Object (readonly)
Returns the value of attribute message_text.
7 8 9 |
# File 'lib/togows/error.rb', line 7 def @message_text end |