Exception PGException (0.18.3)

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)
Parameter
NameDescription
causeException
Returns
TypeDescription
PGException.Builder

newBuilder(String message)

public static PGException.Builder newBuilder(String message)
Parameter
NameDescription
messageString
Returns
TypeDescription
PGException.Builder

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getHints()

public String getHints()
Returns
TypeDescription
String

getSQLState()

public SQLState getSQLState()
Returns
TypeDescription
SQLState

getSeverity()

public Severity getSeverity()
Returns
TypeDescription
Severity

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides