Package com.checkhim.exceptions
Class NetworkRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.checkhim.exceptions.CheckHimException
com.checkhim.exceptions.NetworkRejectedException
- All Implemented Interfaces:
Serializable
Exception thrown when a phone number verification fails due to network issues.
This typically occurs when the network operator forbids verification
or when the network is not supported for verification.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkRejectedException(String message, int httpStatusCode) Creates a new NetworkRejectedException.NetworkRejectedException(String message, int httpStatusCode, Throwable cause) Creates a new NetworkRejectedException with a cause. -
Method Summary
Methods inherited from class com.checkhim.exceptions.CheckHimException
getErrorCode, getHttpStatusCode, isClientError, isServerError, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
NetworkRejectedException
Creates a new NetworkRejectedException.- Parameters:
message- The error messagehttpStatusCode- The HTTP status code
-
NetworkRejectedException
Creates a new NetworkRejectedException with a cause.- Parameters:
message- The error messagehttpStatusCode- The HTTP status codecause- The underlying cause
-