Package com.google.cloud.spanner.jdbc
Interface JdbcSqlException
-
- All Known Implementing Classes:
JdbcSqlExceptionFactory.JdbcAbortedDueToConcurrentModificationException,JdbcSqlExceptionFactory.JdbcAbortedException,JdbcSqlExceptionFactory.JdbcSqlBatchUpdateException,JdbcSqlExceptionFactory.JdbcSqlClientInfoException,JdbcSqlExceptionFactory.JdbcSqlExceptionImpl,JdbcSqlExceptionFactory.JdbcSqlFeatureNotSupportedException,JdbcSqlExceptionFactory.JdbcSqlTimeoutException
public interface JdbcSqlExceptionBase interface for all Cloud SpannerSQLExceptions. AllSQLExceptions that are thrown by the Cloud Spanner JDBC driver implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThrowablegetCause()com.google.rpc.CodegetCode()Returns the corresponding gRPC code for this exceptionintgetErrorCode()Returns the gRPC error code as an intStringgetMessage()StringgetSQLState()
-
-
-
Method Detail
-
getMessage
String getMessage()
- See Also:
Throwable.getMessage()
-
getCause
Throwable getCause()
- See Also:
Throwable.getCause()
-
getSQLState
String getSQLState()
- See Also:
SQLException.getSQLState()
-
getErrorCode
int getErrorCode()
Returns the gRPC error code as an int
-
getCode
com.google.rpc.Code getCode()
Returns the corresponding gRPC code for this exception
-
-