Exception PGException (0.22.1)

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
Name Description
cause Exception
Returns
Type Description
PGException.Builder

newBuilder(String message)

public static PGException.Builder newBuilder(String message)
Parameter
Name Description
message String
Returns
Type Description
PGException.Builder

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getHints()

public String getHints()
Returns
Type Description
String

getSQLState()

public SQLState getSQLState()
Returns
Type Description
SQLState

getSeverity()

public Severity getSeverity()
Returns
Type Description
Severity

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides