# Google.Cloud.Spanner.Data - Enum ErrorCode (5.13.0-beta07)

5.13.0-beta07 5.13.0-beta06 5.12.0 (latest) 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.15.1 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0

    public enum ErrorCode

Reference documentation and code samples for the Google.Cloud.Spanner.Data enum ErrorCode.

A detailed code supplied via [ErrorCode](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerException#Google_Cloud_Spanner_Data_SpannerException_ErrorCode) when an error
occurs.

## Namespace

[Google.Cloud.Spanner.Data](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data)

## Assembly

Google.Cloud.Spanner.Data.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `Aborted` | The operation was aborted due to transient issue such as competing transaction resources. A [SpannerTransaction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerTransaction) should be retried if this error is encountered. |
| `AlreadyExists` | The given resource could be not created because it already exists. |
| `Cancelled` | The operation was cancelled. |
| `DataLoss` | Unrecoverable data loss or corruption. |
| `DeadlineExceeded` | A timeout has occurred. A [SpannerTransaction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerTransaction) should be retried if this error is encountered. |
| `FailedPrecondition` | Operation was rejected because the system is not in a state required for the operation's execution. |
| `Internal` | Internal error. |
| `InvalidArgument` | A bad SQL statement or other invalid input was sent to Spanner. |
| `NotFound` | The given resource (Spanner Instance, Database, Table) was not found. |
| `OutOfRange` | The operation attempted to read past the valid range. |
| `PermissionDenied` | The supplied credential from [CredentialFile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerConnectionStringBuilder#Google_Cloud_Spanner_Data_SpannerConnectionStringBuilder_CredentialFile) or from default application credentials does not have sufficient permission for the request. |
| `ResourceExhausted` | A resource associated with Spanner has been exhausted. This may occur due to a server-side failure, or due to the local maximum number of sessions being reached. |
| `Unauthenticated` | There is no supplied credential either through default application credentials or directly through [CredentialFile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerConnectionStringBuilder#Google_Cloud_Spanner_Data_SpannerConnectionStringBuilder_CredentialFile) |
| `Unavailable` | The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying. A [SpannerTransaction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerTransaction) should be retried if this error is encountered. |
| `Unimplemented` | Operation is not implemented or not supported/enabled in this service. |
| `Unknown` | Unknown error. This may happen if an internal error occured or not enough information was obtained to produce a useful message. |