Exception PGException (0.9.0)

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

newBuilder(String message)

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

Methods

equals(Object o)

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

getHints()

publicStringgetHints()
Returns
Type Description

getSQLState()

publicSQLStategetSQLState()
Returns
Type Description

getSeverity()

publicSeveritygetSeverity()
Returns
Type Description

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.