Module: Notion::Api::Errors

Defined in:
lib/notion/api/errors.rb,
lib/notion/api/errors/notion_error.rb,
lib/notion/api/errors/internal_error.rb,
lib/notion/api/errors/too_many_requests.rb

Defined Under Namespace

Classes: BadRequest, Forbidden, HttpRequestError, InternalError, InvalidRequest, NotionError, ObjectNotFound, ParsingError, ServerError, TimeoutError, TooManyRequests, Unauthorized, UnavailableError

Constant Summary collapse

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