Package dev.dosya.sdk.exception
Class DosyaNetworkException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.dosya.sdk.exception.DosyaException
dev.dosya.sdk.exception.DosyaNetworkException
- All Implemented Interfaces:
Serializable
Thrown when a network-level error occurs while communicating with the Dosya API.
This includes connection timeouts, DNS resolution failures, and other I/O errors that prevent the HTTP request from completing.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDosyaNetworkException(@NotNull String message) Creates a new network exception with the given message.DosyaNetworkException(@NotNull String message, @Nullable Throwable cause) Creates a new network 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
-
DosyaNetworkException
Creates a new network exception with the given message.- Parameters:
message- the detail message
-
DosyaNetworkException
Creates a new network exception with the given message and cause.- Parameters:
message- the detail messagecause- the underlying cause, ornull
-