Class QTSUploadError

All Implemented Interfaces:
Serializable

public final class QTSUploadError extends QTSError
Failure while transferring bytes to a presigned dataset upload target.

The exception deliberately does not retain a transport cause because transport exception messages can contain the complete presigned URL. Callers can therefore log this exception without disclosing the upload credentials embedded in that URL.

Since:
0.18.0
See Also:
  • Constructor Details

    • QTSUploadError

      public QTSUploadError(String message)
      Create a failure without an HTTP response status.
      Parameters:
      message - safe error description that does not contain the presigned URL
    • QTSUploadError

      public QTSUploadError(String message, Integer statusCode)
      Create a failure with the status returned by the upload target.
      Parameters:
      message - safe error description that does not contain the presigned URL
      statusCode - HTTP response status, or null when no response was received
  • Method Details

    • statusCode

      public Integer statusCode()
      Return the status produced by the upload target.
      Returns:
      HTTP response status, or null when no response was received