# NominalFileStoreError

## exception nominal.experimental.drives.NominalFileStoreError(code, message)

Bases: [`NominalError`](https://dev.nominal.io/python/ref/generated/nominal.exceptions.NominalError.md#nominal.exceptions.NominalError "nominal.exceptions.NominalError")

A drive operation was rejected.

Single-operation methods raise this for per-change failures returned by the service.
Local precondition checks, such as writing to a read-only drive, also raise this error.
[`DriveBatch.submit`](https://dev.nominal.io/python/ref/generated/nominal.experimental.drives.DriveBatch.md#nominal.experimental.drives.DriveBatch.submit "nominal.experimental.drives.DriveBatch.submit") returns [`FileChangeFailure`](https://dev.nominal.io/python/ref/generated/nominal.experimental.drives.FileChangeFailure.md#nominal.experimental.drives.FileChangeFailure "nominal.experimental.drives.FileChangeFailure") for per-change failures instead.

Request-level failures raise general Nominal exceptions, such as `NominalNotFoundError`.
A transport error can occur after a change was applied; it does not establish that the
change was rejected. See [Recover after a transport error](https://dev.nominal.io/python/guides/drives/overview.md#drive-change-retries) before retrying.

Initialize error with the error code and message.
