Sha256: 1b5f037f7e337ade0445c7acdc37d6c7f3182e38f9c43d2606a72ed8f26cc6e9

Contents?: true

Size: 273 Bytes

Versions: 14

Compression:

Stored size: 273 Bytes

Contents

module Afipws
  class WSError < StandardError
    attr_reader :errors
    def initialize errors
      if errors.is_a? Array
        super errors.map { |e| "#{e[:code]}: #{e[:msg]}" }.join '; '
        @errors = errors
      else
        super
      end
    end
  end  
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
afipws-1.0.3 lib/afipws/excepciones.rb
afipws-1.0.2 lib/afipws/excepciones.rb
afipws-1.0.1 lib/afipws/excepciones.rb
afipws-1.0.0 lib/afipws/excepciones.rb
afipws-0.2.0 lib/afipws/excepciones.rb
afipws-0.1.8 lib/afipws/excepciones.rb
afipws-0.1.7 lib/afipws/excepciones.rb
afipws-0.1.6 lib/afipws/excepciones.rb
afipws-0.1.4 lib/afipws/excepciones.rb
afipws-0.1.3 lib/afipws/excepciones.rb
afipws-0.1.2 lib/afipws/excepciones.rb
afipws-0.1.1 lib/afipws/excepciones.rb
afipws-0.1.0 lib/afipws/excepciones.rb
afipws-0.0.1 lib/afipws/excepciones.rb