A detailed code supplied via ErrorCode when an error occurs.
public enum ErrorCode
The operation was aborted due to transient issue such as competing transaction resources. A SpannerTransaction should be retried if this error is encountered.
The given resource could be not created because it already exists.
The operation was cancelled.
Unrecoverable data loss or corruption.
A timeout has occurred. A SpannerTransaction should be retried if this error is encountered.
Operation was rejected because the system is not in a state required for the operation's execution.
A bad SQL statement or other invalid input was sent to Spanner.
The given resource (Spanner Instance, Database, Table) was not found.
The operation attempted to read past the valid range.
The supplied credential from CredentialFile or from default application credentials does not have sufficient permission for the request.
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.
There is no supplied credential either through default application credentials or directly through CredentialFile
The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying. A SpannerTransaction should be retried if this error is encountered.
Operation is not implemented or not supported/enabled in this service.
Unknown error. This may happen if an internal error occured or not enough information was obtained to produce a useful message.