Sha256: 52cb02f65220b917d99a97a6f0b54bbfed17bb42dc96ff67274afa74ee414114
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
module HTTP module RestClient # Client default response exception class. class ResponseError < StandardError # Error additional data # # @return [Hash] attr_reader :response_data # Class constructor # # @param message [String] the error details # @param data [Hash] the error data # # @return [ResponseError] instance def initialize(message, data) super(message) @response_data = data.as_json if data end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
http-rest_client-0.1.0 | lib/http/rest_client/response_error.rb |