Exception: Frpc::Admin::ResponseError
- Defined in:
- lib/frpc/admin.rb
Overview
Raised when frpc answers, but not with success.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(method, path, code, body) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(method, path, code, body) ⇒ ResponseError
Returns a new instance of ResponseError.
30 31 32 33 34 |
# File 'lib/frpc/admin.rb', line 30 def initialize(method, path, code, body) @code = code @body = body super("frpc #{method} #{path} failed: #{code} #{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
28 29 30 |
# File 'lib/frpc/admin.rb', line 28 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
28 29 30 |
# File 'lib/frpc/admin.rb', line 28 def code @code end |