Package dev.dosya.sdk.exception
Class DosyaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.dosya.sdk.exception.DosyaException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DosyaApiException,DosyaNetworkException,DosyaUploadException
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 Summary
ConstructorsConstructorDescriptionDosyaException(@NotNull String message) Creates a new exception with the given message.DosyaException(@NotNull String message, @Nullable Throwable cause) Creates a new exception with the given message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DosyaException
Creates a new exception with the given message.- Parameters:
message- the detail message
-
DosyaException
Creates a new exception with the given message and cause.- Parameters:
message- the detail messagecause- the underlying cause, ornull
-