public interface JdbcSqlExceptionBase 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()See Also: 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()See Also: Throwable#getMessage()
| Returns | |
|---|---|
| Type | Description |
String |
|
getSQLState()
public abstract String getSQLState()See Also: SQLException#getSQLState()
| Returns | |
|---|---|
| Type | Description |
String |
|