Sha256: 98c1cf16a6e46abc13094f0fcfff87c37fc7d2e9fbcc8ed8191d2b4f95ee5a30

Contents?: true

Size: 494 Bytes

Versions: 8

Compression:

Stored size: 494 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module DearInventory
  class RequestError < Error
    extend T::Sig

    sig { returns(T.nilable(DearInventory::Response)) }
    attr_reader :response

    sig do
      params(
        message: T.nilable(String),
        response: T.nilable(DearInventory::Response)
      ).void
    end
    def initialize(message = nil, response = nil)
      super(message)

      @response = T.let(response, T.nilable(DearInventory::Response))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dear_inventory-1.4.0 lib/dear_inventory/errors/request.rb
dear_inventory-1.3.0 lib/dear_inventory/errors/request.rb
dear_inventory-1.2.0 lib/dear_inventory/errors/request.rb
dear_inventory-1.1.1 lib/dear_inventory/errors/request.rb
dear_inventory-1.1.0 lib/dear_inventory/errors/request.rb
dear_inventory-1.0.0 lib/dear_inventory/errors/request.rb
dear_inventory-0.7.5 lib/dear_inventory/errors/request.rb
dear_inventory-0.7.4 lib/dear_inventory/errors/request.rb