Exceptions#

Exceptions that can be raised by the Beaker client.

Tip

All exceptions inherit from BeakerError other than HTTPError, which is re-exported from requests.exceptions.HTTPError, and ValidationError, which is re-exported from pydantic.

exception beaker.exceptions.BeakerError[source]#

Bases: Exception

Base class for all Beaker errors other than HTTPError, which is re-exported from requests.exceptions.HTTPError, and ValidationError, which is re-exported from pydantic.

exception beaker.exceptions.ValidationError#

Bases: ValueError

Raised when data passed into a DataModel is invalid.

error_count()#
errors(*, include_url=True, include_context=True, include_input=True)#
static from_exception_data(title, line_errors, input_type='python', hide_input=False)#
json(*, indent=None, include_url=True, include_context=True, include_input=True)#
title#
exception beaker.exceptions.HTTPError(*args, **kwargs)[source]#

Bases: RequestException

An HTTP error occurred.

exception beaker.exceptions.RequestException(*args, **kwargs)[source]#

Bases: OSError

There was an ambiguous exception that occurred while handling your request.

exception beaker.exceptions.BeakerPermissionsError[source]#

Bases: BeakerError

Raised when a user doesn’t have sufficient permissions to perform an action.

exception beaker.exceptions.NotFoundError[source]#

Bases: BeakerError

Base class for all “not found” error types.

exception beaker.exceptions.AccountNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.OrganizationNotFound[source]#

Bases: NotFoundError

Raised when a specified organization doesn’t exist.

exception beaker.exceptions.OrganizationNotSet[source]#

Bases: BeakerError

Raised when an identifying doesn’t start with an organization name and Config.default_org is not set.

exception beaker.exceptions.ConfigurationError[source]#

Bases: BeakerError

Raised when the Config fails to instantiate.

exception beaker.exceptions.ImageNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.ImageConflict[source]#

Bases: BeakerError

Raised when attempting to create/rename an image if an image by that name already exists.

exception beaker.exceptions.WorkspaceNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.WorkspaceWriteError[source]#

Bases: BeakerError

Raised when attempting to modify or add to a workspace that’s been archived.

exception beaker.exceptions.WorkspaceConflict[source]#

Bases: BeakerError

Raised when attempting to create/rename a workspace if a workspace by that name already exists.

exception beaker.exceptions.ClusterNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.ClusterConflict[source]#

Bases: BeakerError

Raised when attempting to create a cluster if a cluster by that name already exists.

exception beaker.exceptions.ExperimentNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.ExperimentConflict[source]#

Bases: BeakerError

Raised when attempting to create/rename an experiment if an experiment by that name already exists.

exception beaker.exceptions.DatasetConflict[source]#

Bases: BeakerError

Raised when attempting to create/rename a dataset if a dataset by that name already exists.

exception beaker.exceptions.DatasetNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.UnexpectedEOFError[source]#

Bases: BeakerError

Raised when creating a dataset when an empty source file is encountered.

exception beaker.exceptions.JobNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.WorkspaceNotSet[source]#

Bases: BeakerError

Raised when workspace argument is not provided and there is no default workspace set.

exception beaker.exceptions.NodeNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.DatasetWriteError[source]#

Bases: BeakerError

Raised when a write operation on a dataset fails because the dataset has already been committed.

exception beaker.exceptions.DatasetReadError[source]#

Bases: BeakerError

Raised when a read operation on a dataset fails because the dataset hasn’t been committed yet, or the storage hasn’t been set for some other reason.

exception beaker.exceptions.SecretNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.GroupConflict[source]#

Bases: BeakerError

Raised when attempting to create/rename a group if a group by that name already exists.

exception beaker.exceptions.GroupNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.DuplicateJobError[source]#

Bases: BeakerError

Raised when duplicate jobs are passed into a method that expects unique jobs.

exception beaker.exceptions.DuplicateExperimentError[source]#

Bases: BeakerError

Raised when duplicate experiments are passed into a method that expects unique experiments.

exception beaker.exceptions.TaskNotFound[source]#

Bases: NotFoundError

exception beaker.exceptions.ChecksumFailedError[source]#

Bases: BeakerError

Raised when a downloaded file from a Beaker dataset is corrupted.

exception beaker.exceptions.TaskStoppedError(msg=None, task=None)[source]#

Bases: BeakerError

exception beaker.exceptions.JobFailedError(msg=None, job=None)[source]#

Bases: BeakerError

exception beaker.exceptions.JobTimeoutError[source]#

Bases: BeakerError, TimeoutError

exception beaker.exceptions.ExperimentSpecError[source]#

Bases: BeakerError

exception beaker.exceptions.ThreadCanceledError[source]#

Bases: BeakerError