Exception PGException (0.23.1)

publicclass PGExceptionextendsRuntimeException

PGException contains all fields that are needed to send an com.google.cloud.spanner.pgadapter.wireoutput.ErrorResponse.

Static Methods

newBuilder(Exception cause)

publicstaticPGException.BuildernewBuilder(Exceptioncause)
Parameter
Name Description
cause Exception
Returns
Type Description
PGException.Builder

newBuilder(String message)

publicstaticPGException.BuildernewBuilder(Stringmessage)
Parameter
Name Description
message String
Returns
Type Description
PGException.Builder

Methods

equals(Object o)

publicbooleanequals(Objecto)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getHints()

publicStringgetHints()
Returns
Type Description
String

getSQLState()

publicSQLStategetSQLState()
Returns
Type Description
SQLState

getSeverity()

publicSeveritygetSeverity()
Returns
Type Description
Severity

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.