Module: Notion::Errors
- Defined in:
- lib/notion/errors/error.rb,
lib/notion/errors/http_error.rb
Defined Under Namespace
Classes: ConflictError, DatabaseConnectionUnavailableError, Error, GatewayTimeoutError, HttpError, InternalServerError, InvalidJsonError, InvalidRequestError, InvalidRequestUrlError, MissingTokenError, MissingVersionError, ObjectNotFoundError, ParamError, ParsingError, RateLimitedError, RestrictedResourceError, ServiceUnavailableError, TimeoutError, UnauthorizedError, ValidationError
Constant Summary collapse
- NOTION_ERROR_CODES =
{ "invalid_json" => InvalidJsonError, "invalid_request_url" => InvalidRequestUrlError, "invalid_request" => InvalidRequestError, "validation_error" => ValidationError, "missing_version" => MissingVersionError, "unauthorized" => UnauthorizedError, "restricted_resource" => RestrictedResourceError, "object_not_found" => ObjectNotFoundError, "conflict_error" => ConflictError, "rate_limited" => RateLimitedError, "internal_server_error" => InternalServerError, "service_unavailable" => ServiceUnavailableError, "database_connection_unavailable" => DatabaseConnectionUnavailableError, "gateway_timeout" => GatewayTimeoutError }.freeze