Sha256: d8a5095500d69ecd5f3410b388dd6b153263ce87a2fe61f9a65f95c1becbd09c

Contents?: true

Size: 193 Bytes

Versions: 4

Compression:

Stored size: 193 Bytes

Contents

module EsHttpClient

  class EsHttpClientError < StandardError

    attr_reader :code

    def initialize(code, reason)
      @code = code
      super("#{code}: #{reason}")
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
es-http-client-0.2.0 lib/es_http_client/es_http_client_error.rb
es-http-client-0.1.2 lib/es_http_client/es_http_client_error.rb
es-http-client-0.1.1 lib/es_http_client/es_http_client_error.rb
es-http-client-0.1.0 lib/es_http_client/es_http_client_error.rb