Sha256: e3b0ec655ade04b1868721bf7595fb9a12ad7dfddfc1a9ef7a0c23193330369a
Contents?: true
Size: 517 Bytes
Versions: 6
Compression:
Stored size: 517 Bytes
Contents
module Http module Exceptions class HttpException < RuntimeError attr_reader :response, :original_exception def initialize(options = {}) @original_exception = options[:original_exception] @response = options[:response] msg = "An error as occured while processing response." msg += " Status #{response.code}\n#{response.body}" if response msg += " Original Exception: #{original_exception}" if original_exception super msg end end end end
Version data entries
6 entries across 6 versions & 2 rubygems