Class PGExceptionFactory (0.7.0)

public class PGExceptionFactory

Factory class for PGException instances.

Inheritance

java.lang.Object > PGExceptionFactory

Static Methods

newPGException(String message)

public static PGException newPGException(String message)
Parameter
NameDescription
messageString
Returns
TypeDescription
PGException

toPGException(SpannerException spannerException)

public static PGException toPGException(SpannerException spannerException)

Converts the given SpannerException to a PGException.

Parameter
NameDescription
spannerExceptioncom.google.cloud.spanner.SpannerException
Returns
TypeDescription
PGException

toPGException(Exception exception)

public static PGException toPGException(Exception exception)

Converts the given Exception to a PGException.

Parameter
NameDescription
exceptionException
Returns
TypeDescription
PGException