For the complete documentation index, see llms.txt. This page is also available as Markdown.

exceptions

Overview

The following exceptions may be raised by Redivis, and can be caught and reacted to directly.

tryCatch(
  {
    redivis$notebook("some_notebook")$run()
  },
  redivis_job_error = function(e) {
    # Handle issue running job
  },
  redivis_not_found_error = function(e) {
    # Handle not found
  }
)

redivis_error

The base Redivis exception class. All other Redivis exceptions inherit from it.

redivis_api_error (redivis_error)

The base API Error, also a redivis_error. Associated with any non-successful response from the Redivis API. Has a status_code property, an integer with the HTTP status code of the API response.

redivis_authorization_error (redivis_api_error)

Raised for all "not authorized" API errors. Also a redivis_api_error.

redivis_not_found_error (redivis_api_error)

Raised for all "not found" API errors. Also a redivis_api_error.

redivis_deprecation_error (redivis_error)

Raised only for methods that have been fully deprecated and removed. Typically, deprecated code paths will emit a warning for several versions of this library, before being fully removed and raising this error. Also a redivis_error.

redivis_job_error (redivis_error)

Raised whenever a long-running job on Redivis fails to complete successfully. Can occur when running: queries, transforms, notebooks, and uploads. Also a redivis_error.

redivis_networkError (redivis_error)

Raised whenever a networking error occurs. The original_exception property contains the original exception from the network stack, when relevant. Also a redivis_error.

redivis_value_error (redivis_error)

Raised whenever an invalid value is passed to a method in this package. Also a redivis_error.

Last updated

Was this helpful?