lib/notion/api/errors.rb in notion-ruby-client-0.0.8 vs lib/notion/api/errors.rb in notion-ruby-client-0.1.0.pre.beta1
- old
+ new
@@ -6,19 +6,17 @@
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
\ No newline at end of file