Sha256: 4566b910e848e376d48f3a9c192d44a541139ba89b6fe0e9f4028b2b2dcaf219

Contents?: true

Size: 322 Bytes

Versions: 3

Compression:

Stored size: 322 Bytes

Contents

module EBayEnterpriseAffiliateNetwork
  class Error < StandardError
    attr_reader :message, :code

    def initialize(message = nil, code = nil)
      @message = message
      @code    = code
    end

    def to_s
      code_string = code.nil? ? "" : " (Code #{code})"
      "#{message}#{code_string}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ebay_enterprise_affiliate_network-1.0.3 lib/ebay_enterprise_affiliate_network/errors/error.rb
ebay_enterprise_affiliate_network-1.0.2 lib/ebay_enterprise_affiliate_network/errors/error.rb
ebay_enterprise_affiliate_network-1.0.1 lib/ebay_enterprise_affiliate_network/errors/error.rb