Sha256: f9e9257dae4a96f00c763829acdfb26ecae490fcf54e7029bc039af881a006cc

Contents?: true

Size: 345 Bytes

Versions: 20

Compression:

Stored size: 345 Bytes

Contents

module Adparlor
  module Facebook
    class Error < StandardError
      attr_reader :error_code

      def initialize(message, error_code = nil, error_attributes = {})
        @error_code = error_code
        error_attributes.each { |key, value| instance_variable_set("@#{key}".to_sym, value) }
        super message
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
adparlor-facebook-0.8.2 lib/adparlor/facebook/error.rb
adparlor-facebook-0.8.0 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.9 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.8 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.7 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.6 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.5 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.4 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.3 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.2 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.1 lib/adparlor/facebook/error.rb
adparlor-facebook-0.7.0 lib/adparlor/facebook/error.rb
adparlor-facebook-0.6.6 lib/adparlor/facebook/error.rb
adparlor-facebook-0.6.5 lib/adparlor/facebook/error.rb
adparlor-facebook-0.6.4 lib/adparlor/facebook/error.rb
adparlor-facebook-0.6.3 lib/adparlor/facebook/error.rb
adparlor-facebook-0.6.2 lib/adparlor/facebook/error.rb
adparlor-facebook-0.6.1 lib/adparlor/facebook/error.rb
adparlor-facebook-0.6.0 lib/adparlor/facebook/error.rb
adparlor-facebook-0.5.9 lib/adparlor/facebook/error.rb