Class InvalidFormatException

All Implemented Interfaces:
Serializable

public class InvalidFormatException extends CheckHimException
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 Details

    • InvalidFormatException

      public InvalidFormatException(String message, int httpStatusCode)
      Creates a new InvalidFormatException.
      Parameters:
      message - The error message
      httpStatusCode - The HTTP status code
    • InvalidFormatException

      public InvalidFormatException(String message, int httpStatusCode, Throwable cause)
      Creates a new InvalidFormatException with a cause.
      Parameters:
      message - The error message
      httpStatusCode - The HTTP status code
      cause - The underlying cause