Interface JdbcSqlException (2.22.0)

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
Type Description
Throwable

getCode()

public abstract Code getCode()

Returns the corresponding gRPC code for this exception

Returns
Type Description
com.google.rpc.Code

getErrorCode()

public abstract int getErrorCode()

Returns the gRPC error code as an int

Returns
Type Description
int

getMessage()

public abstract String getMessage()
Returns
Type Description
String

getSQLState()

public abstract String getSQLState()
Returns
Type Description
String