Exception: EppoClient::HttpRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- EppoClient::HttpRequestError
- Defined in:
- lib/custom_errors.rb
Overview
A custom error class for HTTP requests
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code) ⇒ HttpRequestError
constructor
A new instance of HttpRequestError.
Constructor Details
#initialize(message, status_code) ⇒ HttpRequestError
Returns a new instance of HttpRequestError.
22 23 24 25 |
# File 'lib/custom_errors.rb', line 22 def initialize(, status_code) @status_code = status_code super("HttpRequestError: #{message}") end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
20 21 22 |
# File 'lib/custom_errors.rb', line 20 def status_code @status_code end |