Exception: Frpc::Admin::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/frpc/admin.rb

Overview

Raised when frpc answers, but not with success.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



28
29
30
# File 'lib/frpc/admin.rb', line 28

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



28
29
30
# File 'lib/frpc/admin.rb', line 28

def code
  @code
end