Class InvalidUserFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
exception.InvalidUserFormatException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructs a newInvalidUserFormatExceptionwith a default detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidUserFormatException
public InvalidUserFormatException()Constructs a newInvalidUserFormatExceptionwith 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.
-