Sha256: 167c3f9cceb4344f3e0c393cadfe4d2fe5e809bcfec8e4fd6a8cf0e616fe6db4
Contents?: true
Size: 731 Bytes
Versions: 6
Compression:
Stored size: 731 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 TooManyRequests < NotionError; end class Unauthorized < NotionError; end ERROR_CLASSES = { 'bad_request' => BadRequest, 'forbidden' => Forbidden, 'internal_error' => InternalError, 'invalid_request' => InvalidRequest, 'object_not_found' => ObjectNotFound, 'rate_limited' => TooManyRequests, 'unauthorized' => Unauthorized }.freeze end end end
Version data entries
6 entries across 6 versions & 1 rubygems