Class UploadApiException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UploadApiException
    extends com.google.api.gax.rpc.ApiException
    Exception that occurred during byte uploads. Includes a URL to resume this upload.

    This type of ApiException contains an optional resume URL from which an in-progress upload can be resumed.

    See Also:
    PhotosLibraryUploadCallable, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UploadApiException​(java.lang.String message, java.lang.Throwable cause, com.google.api.gax.rpc.StatusCode statusCode, boolean retryable, java.lang.String resumeUrl)
      Exception that occurred during an upload that includes a resume URL to resume the upload.
      UploadApiException​(java.lang.Throwable cause, com.google.api.gax.rpc.StatusCode statusCode, boolean retryable, java.lang.String resumeUrl)
      Exception that occurred during an upload that includes a URL to resume the upload.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getResumeUrl()
      The resume URL from which the in-progress upload can be resumed.
      • Methods inherited from class com.google.api.gax.rpc.ApiException

        getStatusCode, isRetryable
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UploadApiException

        public UploadApiException​(java.lang.Throwable cause,
                                  com.google.api.gax.rpc.StatusCode statusCode,
                                  boolean retryable,
                                  java.lang.String resumeUrl)
        Exception that occurred during an upload that includes a URL to resume the upload.
        Parameters:
        cause - The cause of this exception.
        statusCode - StatusCode that describes the underlying error.
        retryable - Whether the request can be retried.
        resumeUrl - The URL to use to resume the failed upload.
      • UploadApiException

        public UploadApiException​(java.lang.String message,
                                  java.lang.Throwable cause,
                                  com.google.api.gax.rpc.StatusCode statusCode,
                                  boolean retryable,
                                  java.lang.String resumeUrl)
        Exception that occurred during an upload that includes a resume URL to resume the upload.
        Parameters:
        message - The detail message that describes this error.
        cause - The cause of this exception.
        statusCode - StatusCode that describes the underlying error.
        retryable - Whether the request can be retried.
        resumeUrl - The URL to use to resume the failed upload.