Class DosyaUploadException

All Implemented Interfaces:
Serializable

public final class DosyaUploadException extends DosyaException
Thrown when a file upload operation fails.

Contains the upload session ID and, for multipart uploads, the part number that failed. This information can be used to resume or diagnose the upload.

Since:
0.1.0
See Also:
  • Constructor Details

    • DosyaUploadException

      public DosyaUploadException(@NotNull @NotNull String message, @NotNull @NotNull String sessionId)
      Creates a new upload exception with a session ID.
      Parameters:
      message - the detail message
      sessionId - the upload session ID
    • DosyaUploadException

      public DosyaUploadException(@NotNull @NotNull String message, @NotNull @NotNull String sessionId, @Nullable @Nullable Integer partNumber)
      Creates a new upload exception with a session ID and part number.
      Parameters:
      message - the detail message
      sessionId - the upload session ID
      partNumber - the part number that failed, or null
    • DosyaUploadException

      public DosyaUploadException(@NotNull @NotNull String message, @NotNull @NotNull String sessionId, @Nullable @Nullable Integer partNumber, @Nullable @Nullable Throwable cause)
      Creates a new upload exception with a session ID, part number, and cause.
      Parameters:
      message - the detail message
      sessionId - the upload session ID
      partNumber - the part number that failed, or null
      cause - the underlying cause, or null
  • Method Details

    • getSessionId

      @NotNull public @NotNull String getSessionId()
      Returns the upload session ID associated with this error.
      Returns:
      the session ID
    • getPartNumber

      @Nullable public @Nullable Integer getPartNumber()
      Returns the part number that failed, or null if not applicable.
      Returns:
      the failed part number, or null