Package com.checkhim.exceptions
Class UnknownSubscriberException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.checkhim.exceptions.CheckHimException
com.checkhim.exceptions.UnknownSubscriberException
- All Implemented Interfaces:
Serializable
Exception thrown when the subscriber is unknown to the network.
This occurs when the phone number doesn't exist in the network
or is not recognized by the carrier.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownSubscriberException(String message, int httpStatusCode) Creates a new UnknownSubscriberException.UnknownSubscriberException(String message, int httpStatusCode, Throwable cause) Creates a new UnknownSubscriberException 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
-
UnknownSubscriberException
Creates a new UnknownSubscriberException.- Parameters:
message- The error messagehttpStatusCode- The HTTP status code
-
UnknownSubscriberException
Creates a new UnknownSubscriberException with a cause.- Parameters:
message- The error messagehttpStatusCode- The HTTP status codecause- The underlying cause
-