Class DosyaException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DosyaApiException, DosyaNetworkException, DosyaUploadException

public class DosyaException extends RuntimeException
Base runtime exception for all errors originating from the Dosya SDK.

This is the superclass of all Dosya-specific exceptions. Catching this type will handle any error thrown by the SDK, including API errors, network errors, and upload errors.

Since:
0.1.0
See Also:
  • Constructor Details

    • DosyaException

      public DosyaException(@NotNull @NotNull String message)
      Creates a new exception with the given message.
      Parameters:
      message - the detail message
    • DosyaException

      public DosyaException(@NotNull @NotNull String message, @Nullable @Nullable Throwable cause)
      Creates a new exception with the given message and cause.
      Parameters:
      message - the detail message
      cause - the underlying cause, or null