Exception: BceHttpException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/baidubce/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_code, http_headers, http_body, message) ⇒ BceHttpException

Returns a new instance of BceHttpException.



27
28
29
30
31
32
# File 'lib/baidubce/exception.rb', line 27

def initialize(http_code, http_headers, http_body, message)
    @http_code = http_code
    @http_headers = http_headers
    @http_body = http_body
    @message = message
end

Instance Attribute Details

#http_bodyObject

Returns the value of attribute http_body.



24
25
26
# File 'lib/baidubce/exception.rb', line 24

def http_body
  @http_body
end

#http_codeObject

Returns the value of attribute http_code.



22
23
24
# File 'lib/baidubce/exception.rb', line 22

def http_code
  @http_code
end

#http_headersObject

Returns the value of attribute http_headers.



23
24
25
# File 'lib/baidubce/exception.rb', line 23

def http_headers
  @http_headers
end

#messageObject

Returns the value of attribute message.



25
26
27
# File 'lib/baidubce/exception.rb', line 25

def message
  @message
end