Package com.checkhim.exceptions
Class InvalidFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.checkhim.exceptions.CheckHimException
com.checkhim.exceptions.InvalidFormatException
- All Implemented Interfaces:
Serializable
Exception thrown when a phone number has an invalid format.
This occurs when the provided phone number doesn't meet the expected
format requirements (e.g., missing country code, invalid characters).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidFormatException(String message, int httpStatusCode) Creates a new InvalidFormatException.InvalidFormatException(String message, int httpStatusCode, Throwable cause) Creates a new InvalidFormatException 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
-
InvalidFormatException
Creates a new InvalidFormatException.- Parameters:
message- The error messagehttpStatusCode- The HTTP status code
-
InvalidFormatException
Creates a new InvalidFormatException with a cause.- Parameters:
message- The error messagehttpStatusCode- The HTTP status codecause- The underlying cause
-