Interface JdbcSqlException (2.9.2)

public interface JdbcSqlException

Base interface for all Cloud Spanner SQLExceptions. All SQLExceptions that are thrown by the Cloud Spanner JDBC driver implement this interface.

Methods

getCause()

public abstract Throwable getCause()
Returns
TypeDescription
Throwable

getCode()

public abstract Code getCode()

Returns the corresponding gRPC code for this exception

Returns
TypeDescription
com.google.rpc.Code

getErrorCode()

public abstract int getErrorCode()

Returns the gRPC error code as an int

Returns
TypeDescription
int

getMessage()

public abstract String getMessage()
Returns
TypeDescription
String

getSQLState()

public abstract String getSQLState()
Returns
TypeDescription
String