public class PGException extends RuntimeException
PGException contains all fields that are needed to send an com.google.cloud.spanner.pgadapter.wireoutput.ErrorResponse.
Static Methods
newBuilder(Exception cause)
public static PGException.Builder newBuilder(Exception cause)
Name | Description |
cause | Exception |
Type | Description |
PGException.Builder |
newBuilder(String message)
public static PGException.Builder newBuilder(String message)
Name | Description |
message | String |
Type | Description |
PGException.Builder |
Methods
equals(Object o)
public boolean equals(Object o)
Name | Description |
o | Object |
Type | Description |
boolean |
getHints()
public String getHints()
Type | Description |
String |
getSQLState()
public SQLState getSQLState()
Type | Description |
SQLState |
getSeverity()
public Severity getSeverity()
Type | Description |
Severity |
hashCode()
public int hashCode()
Type | Description |
int |