Sha256: cca37cf305fb8b704a63e696375c1298541ede3b293bcd4116edf0a087c65986
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true module Gladwords module Commands # Shared error handler for all AdWords commands # # @api private module ErrorWrapper # Handle AdWords errors and re-raise ROM-specific errors # # @return [Hash, Array<Hash>] # # @raise AdWords::Error # # @api public def call(*args) super rescue *ERROR_MAP.keys => e raise ERROR_MAP.fetch(e.class, Error), e end alias [] call end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gladwords-1.0.1 | lib/gladwords/commands/error_wrapper.rb |