Class SpannerException

    • Method Detail

      • getErrorCode

        public ErrorCode getErrorCode()
        Returns the error code associated with this exception.
      • getRetryDelayInMillis

        public long getRetryDelayInMillis()
        Return the retry delay for operation in milliseconds. Return -1 if this does not specify any retry delay.
      • getReason

        public String getReason()
        Checks the underlying reason of the exception and if it's ApiException then return the reason otherwise null.
        Overrides:
        getReason in class com.google.cloud.BaseServiceException
        Returns:
        the reason of an error.
        See Also:
        Reason
      • getDomain

        public String getDomain()
        Checks the underlying reason of the exception and if it's ApiException then return the specific domain otherwise null.
        Returns:
        the logical grouping to which the "reason" belongs.
        See Also:
        Domain
      • getMetadata

        public Map<String,​String> getMetadata()
        Checks the underlying reason of the exception and if it's ApiException then return a map of key-value pairs otherwise null.
        Returns:
        the map of additional structured details about an error.
        See Also:
        Metadata
      • getErrorDetails

        public com.google.api.gax.rpc.ErrorDetails getErrorDetails()
        Checks the underlying reason of the exception and if it's ApiException then return the ErrorDetails otherwise null.
        Returns:
        An object containing getters for structured objects from error_details.proto.
        See Also:
        Status, Error Details