Class PGExceptionFactory (0.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass PGExceptionFactoryFactory class for PGException instances.
Inherited Members
Static Methods
newPGException(String message)
publicstaticPGExceptionnewPGException(Stringmessage)Creates a basic PGException with Severity#ERROR and SQLState#RaiseException.
Name
Description
Returns
Type
Description
newPGException(String message, SQLState sqlState)
publicstaticPGExceptionnewPGException(Stringmessage,SQLStatesqlState)Creates a basic PGException with Severity#ERROR and the specified SQLState.
Name
Description
Returns
Type
Description
newQueryCancelledException()
publicstaticPGExceptionnewQueryCancelledException()Creates a new exception that indicates that the current query was cancelled by the client.
Type
Description
toPGException(SpannerException spannerException)
publicstaticPGExceptiontoPGException(SpannerExceptionspannerException)Converts the given SpannerException to a PGException.
Name
Description
spannerException
Returns
com.google.cloud.spanner.SpannerException Type
Description
toPGException(Exception exception)
publicstaticPGExceptiontoPGException(Exceptionexception)Converts the given Exception to a PGException.
Name
Description
Returns
Type
Description