Sha256: 8902052788c0668e47d57f0762c6bc9ea99ddfa3d3f2ddbd61a2764400e230cc

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

# Encoding: utf-8
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# File for all errors that will be used by the Google Ads API Library.

module Google
  module Ads
    module Googleads
      module Errors

        # Generic error class for non-specific errors.
        class Error < ::StandardError
        end

        # Raised when encountering an API-specific error, such as an entity
        # not found or a malformed query.
        class GoogleAdsError < Error
          attr_reader :failure

          def initialize(failure)
            @failure = failure
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
google-ads-googleads-0.4.0 lib/google/ads/googleads/errors.rb
google-ads-googleads-0.3.0 lib/google/ads/googleads/errors.rb
google-ads-googleads-0.2.0 lib/google/ads/googleads/errors.rb
google-ads-googleads-0.1.0 lib/google/ads/googleads/errors.rb