Sha256: 38e0afb1450132117c4e7291d4588431fd21064f3bd5b7b45883b7de5de2e5e2

Contents?: true

Size: 641 Bytes

Versions: 8

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module Notion
  module Api
    module Errors
      class BadRequest < NotionError; end
      class Forbidden < NotionError; end
      class InternalError < NotionError; end
      class InvalidRequest < NotionError; end
      class ObjectNotFound < NotionError; end
      class Unauthorized < NotionError; end

      ERROR_CLASSES = {
        'bad_request' => BadRequest,
        'forbidden' => Forbidden,
        'internal_error' => InternalError,
        'invalid_request' => InvalidRequest,
        'object_not_found' => ObjectNotFound,
        'unauthorized' => Unauthorized
      }.freeze
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
notion-ruby-client-1.2.2 lib/notion/api/errors.rb
notion-ruby-client-1.2.1 lib/notion/api/errors.rb
notion-ruby-client-1.2.0 lib/notion/api/errors.rb
notion-ruby-client-1.1.0 lib/notion/api/errors.rb
notion-ruby-client-1.0.0 lib/notion/api/errors.rb
notion-ruby-client-1.0.0.pre.beta2 lib/notion/api/errors.rb
notion-ruby-client-1.0.0.pre.beta1 lib/notion/api/errors.rb
notion-ruby-client-0.1.0.pre.beta1 lib/notion/api/errors.rb