Exception: EsHttpClient::EsHttpClientError
- Inherits:
-
StandardError
- Object
- StandardError
- EsHttpClient::EsHttpClientError
- Defined in:
- lib/es_http_client/es_http_client_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, reason) ⇒ EsHttpClientError
constructor
A new instance of EsHttpClientError.
Constructor Details
#initialize(code, reason) ⇒ EsHttpClientError
Returns a new instance of EsHttpClientError.
7 8 9 10 |
# File 'lib/es_http_client/es_http_client_error.rb', line 7 def initialize(code, reason) @code = code super("#{code}: #{reason}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/es_http_client/es_http_client_error.rb', line 5 def code @code end |