Exception: Chain::Middleware::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Chain::Middleware::RequestError
- Defined in:
- lib/chain/middleware/request_error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(error_code) ⇒ RequestError
Returns a new instance of RequestError.
6 7 8 9 |
# File 'lib/chain/middleware/request_error.rb', line 6 def initialize(error_code) @error_code = error_code super("HTTP Response Code: #{error_code}") end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
4 5 6 |
# File 'lib/chain/middleware/request_error.rb', line 4 def error_code @error_code end |