Sha256: 5d1fe32385ad46938e8d72a8db83f416a04065d514f15b0ab36691e36f0232c5

Contents?: true

Size: 290 Bytes

Versions: 6

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  class ApiError < StandardError
    attr_reader :cause

    # @param [RestClient::Exception] cause
    # @param [String] msg
    def initialize(cause, msg = nil)
      @cause = cause
      super msg || cause.message
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
friendly_shipping-0.8.1 lib/friendly_shipping/api_error.rb
friendly_shipping-0.8.0 lib/friendly_shipping/api_error.rb
friendly_shipping-0.7.3 lib/friendly_shipping/api_error.rb
friendly_shipping-0.7.2 lib/friendly_shipping/api_error.rb
friendly_shipping-0.7.1 lib/friendly_shipping/api_error.rb
friendly_shipping-0.7.0 lib/friendly_shipping/api_error.rb