Class InvalidUserFormatException

java.lang.Object
java.lang.Throwable
java.lang.Exception
exception.InvalidUserFormatException
All Implemented Interfaces:
Serializable

public class InvalidUserFormatException extends Exception
Custom checked exception thrown when a provided user ID does not conform to the expected format (e.g., NRIC format). This indicates that the structure or pattern of the user ID is incorrect.
See Also:
  • Constructor Details

    • InvalidUserFormatException

      public InvalidUserFormatException()
      Constructs a new InvalidUserFormatException with a default detail message. The default message is "Invalid userID format. UserID should be your NRIC.". Note: NRIC (National Registration Identity Card) is specific to Singapore.