foundry_dev_tools.errors.dataset module#
Foundry error classes for Dataset related errors.
- exception foundry_dev_tools.errors.dataset.DatasetHasNoOpenTransactionError[source]#
Bases:
FoundryDevToolsError
Raised when trying to access transaction property without an open transaction.
- exception foundry_dev_tools.errors.dataset.DatasetHasNoSchemaError[source]#
Bases:
FoundryAPIError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'Dataset has no schema.'#
- exception foundry_dev_tools.errors.dataset.BranchNotFoundError[source]#
Bases:
FoundryAPIError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'Branch not found in dataset.'#
- exception foundry_dev_tools.errors.dataset.BranchesAlreadyExistError[source]#
Bases:
FoundryAPIError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'Branch already exists.'#
- exception foundry_dev_tools.errors.dataset.DatasetNotFoundError[source]#
Bases:
ResourceNotFoundError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'Dataset not found.'#
- exception foundry_dev_tools.errors.dataset.DatasetAlreadyExistsError[source]#
Bases:
FoundryAPIError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'Dataset already exists.'#
- exception foundry_dev_tools.errors.dataset.DatasetHasNoTransactionsError[source]#
Bases:
FoundryAPIError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'Dataset has no transactions.'#
- exception foundry_dev_tools.errors.dataset.DatasetNoReadAccessError[source]#
Bases:
FoundryDevToolsError
Exception is thrown when user is missing ‘gatekeeper:view-resource’ on the dataset, which normally comes with the Viewer role.
- exception foundry_dev_tools.errors.dataset.DatasetHasOpenTransactionError[source]#
Bases:
FoundryAPIError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'Dataset already has an open transaction.'#
- exception foundry_dev_tools.errors.dataset.TransactionTypeMismatchError[source]#
Bases:
FoundryAPIError
Initialize a Foundry API error.
- Parameters:
response – requests Response where the API error occured
info – add additional information to this error
kwargs – error specific parameters which may contain more information about the error
- message = 'There is an open transaction with a different transaction type than you requested.'#