Package tech.checkhim.exceptions
Class PrefixMissingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
tech.checkhim.exceptions.CheckHimException
tech.checkhim.exceptions.PrefixMissingException
- All Implemented Interfaces:
Serializable
Exception thrown when a phone number is missing the required country prefix.
This occurs when the phone number doesn't include the international
dialing code (e.g., +55 for Brazil, +1 for US).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPrefixMissingException(String message, int httpStatusCode) Creates a new PrefixMissingException.PrefixMissingException(String message, int httpStatusCode, Throwable cause) Creates a new PrefixMissingException with a cause. -
Method Summary
Methods inherited from class tech.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
-
PrefixMissingException
Creates a new PrefixMissingException.- Parameters:
message- The error messagehttpStatusCode- The HTTP status code
-
PrefixMissingException
Creates a new PrefixMissingException with a cause.- Parameters:
message- The error messagehttpStatusCode- The HTTP status codecause- The underlying cause
-