Sha256: 9f7df5390131e97543bdb155e1a11fccb08a57e7798b4b5a2fe62b9c88763eed
Contents?: true
Size: 695 Bytes
Versions: 9
Compression:
Stored size: 695 Bytes
Contents
# frozen_string_literal: true module Boltless module Errors # A generic request error wrapper, from the low-level http.rb gem class RequestError < StandardError # We allow to read our details attr_accessor :message attr_reader :response # Create a new generic request error instance. # # @param message [String] the error message # @param response [HTTP::Response, nil] the HTTP response, # or +nil+ when not available # @return [Errors::RequestError] the new error instance def initialize(message, response: nil) super(message) @message = message @response = response end end end end
Version data entries
9 entries across 9 versions & 1 rubygems