Exception: Oss::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Oss::ResponseError
- Defined in:
- lib/oss/error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#host_id ⇒ Object
readonly
Returns the value of attribute host_id.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#initialize(err_attrs, err_msg) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(err_attrs, err_msg) ⇒ ResponseError
Returns a new instance of ResponseError.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/oss/error.rb', line 7 def initialize(err_attrs, err_msg) @error_code = err_attrs[:code] @error_message = err_attrs[:message] @http_status = err_attrs[:http_status] @header = err_attrs[:header] @request_id = err_attrs[:request_id] @host_id = err_attrs[:host_id] super err_msg end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
5 6 7 |
# File 'lib/oss/error.rb', line 5 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
5 6 7 |
# File 'lib/oss/error.rb', line 5 def @error_message end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
5 6 7 |
# File 'lib/oss/error.rb', line 5 def header @header end |
#host_id ⇒ Object (readonly)
Returns the value of attribute host_id.
5 6 7 |
# File 'lib/oss/error.rb', line 5 def host_id @host_id end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
5 6 7 |
# File 'lib/oss/error.rb', line 5 def http_status @http_status end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
5 6 7 |
# File 'lib/oss/error.rb', line 5 def request_id @request_id end |