Exceptions

exception datarobot.errors.AppPlatformError

Bases: Exception

Raised by Client.request() for requests that:
  • Return a non-200 HTTP response, or

  • Connection refused/timeout or

  • Response timeout or

  • Malformed request

  • Have a malformed/missing header in the response.

exception datarobot.errors.ServerError

Bases: AppPlatformError

For 500-level responses from the server

exception datarobot.errors.ClientError

Bases: AppPlatformError

For 400-level responses from the server has json parameter for additional information to be stored about error if need be

exception datarobot.errors.InputNotUnderstoodError

Bases: Exception

Raised if a method is called in a way that cannot be understood

exception datarobot.errors.InvalidUsageError

Bases: Exception

Raised when methods are called with invalid or incompatible arguments

exception datarobot.errors.AllRetriesFailedError

Bases: Exception

Raised when the retry manager does not successfully make a request

exception datarobot.errors.InvalidModelCategoryError

Bases: Exception

Raised when method specific for model category was called from wrong model

exception datarobot.errors.AsyncTimeoutError

Bases: Exception

Raised when an asynchronous operation did not successfully get resolved within a specified time limit

exception datarobot.errors.AsyncFailureError

Bases: Exception

Raised when querying an asynchronous status resulted in an exceptional status code (not 200 and not 303)

exception datarobot.errors.ProjectAsyncFailureError

Bases: AsyncFailureError

When an AsyncFailureError occurs during project creation or finalizing the project settings for modeling. This exception will have the attributes status_code indicating the unexpected status code from the server, and async_location indicating which asynchronous status object was being polled when the failure happened.

exception datarobot.errors.AsyncProcessUnsuccessfulError

Bases: Exception

Raised when querying an asynchronous status showed that async process was not successful

exception datarobot.errors.AsyncModelCreationError

Bases: Exception

Raised when querying an asynchronous status showed that model creation was not successful

exception datarobot.errors.AsyncPredictionsGenerationError

Bases: Exception

Raised when querying an asynchronous status showed that predictions generation was not successful

exception datarobot.errors.PendingJobFinished

Bases: Exception

Raised when the server responds with a 303 for the pending creation of a resource.

exception datarobot.errors.JobNotFinished

Bases: Exception

Raised when execution was trying to get a finished resource from a pending job, but the job is not finished

exception datarobot.errors.DuplicateFeaturesError

Bases: Exception

Raised when trying to create featurelist with duplicating features

exception datarobot.errors.TrainingDataAssignmentError

Bases: Exception

Raised when the training data assignment for a custom model version fails

exception datarobot.errors.DataRobotDeprecationWarning

Bases: DeprecationWarning

Raised when using deprecated functions or using functions in a deprecated way

exception datarobot.errors.IllegalFileName

Bases: Exception

Raised when trying to use a filename we can’t handle.

exception datarobot.errors.JobAlreadyRequested

Bases: ClientError

Raised when the requested model has already been requested.

exception datarobot.errors.ContentRetrievalTerminatedError

Bases: Exception

Raised when due to content retrieval error process of data retrieval was terminated.

exception datarobot.errors.UpdateAttributesError

Bases: AttributeError

exception datarobot.errors.InvalidRatingTableWarning

Bases: Warning

Raised when using interacting with rating tables that failed validation

exception datarobot.errors.PartitioningMethodWarning

Bases: Warning

Raised when interacting with project methods related to partition classes, i.e. Project.set_partitioning_method() or Project.set_datetime_partitioning().

exception datarobot.errors.NonPersistableProjectOptionWarning

Bases: Warning

Raised when setting project options via Project.set_options if any of the options passed are not supported for POST requests to /api/v2/project/{project_id}/options/. All options that fall under this category can be found here: datarobot.enums.NonPersistableProjectOptions().

exception datarobot.errors.OverwritingProjectOptionWarning

Bases: Warning

Raised when setting project options via Project.set_options if any of the options passed have already been set to a value in Project.advanced_options, or if a different value is already stored in the endpoint /api/v2/project/{project_id}/options/. Precedence is given to the new value you passed in.

exception datarobot.errors.NoRedundancyImpactAvailable

Bases: Warning

Raised when retrieving old feature impact data

Redundancy detection was added in v2.13 of the API, and some projects, e.g. multiclass projects do not support redundancy detection. This warning is raised to make clear that redundancy detection is unavailable.

exception datarobot.errors.ParentModelInsightFallbackWarning

Bases: Warning

Raised when insights are unavailable for a model and insight retrieval falls back to retrieving insights for a model’s parent model

exception datarobot.errors.ProjectHasNoRecommendedModelWarning

Bases: Warning

Raised when a project has no recommended model.

exception datarobot.errors.PlatformDeprecationWarning

Bases: Warning

Raised when Deprecation header is returned in the API, for example a project may be deprecated as part of the 2022 Python 3 platform migration.

exception datarobot.errors.MultipleUseCasesNotAllowed

Bases: UserWarning

Raised when a method decorated with add_to_use_case(allow_multiple=True) calls a method decorated with add_to_use_case(allow_multiple=False) with multiple UseCases passed

message = "Entity can't be added to multiple UseCases"