BirthDay

BirthDay~ BirthDay

new BirthDay(nationalIdentityCardNumberopt, exceptionSwitchopt)

Description:
  • This is used to find birthdays. When creating an object using BirthDay(), the national identity card number must be entered. If this is not provided, an object can be created, and the national identity card number can be entered using "setIdentityNumber(nationalIdentityCardNumber)". Any national ID number applied must be pre-verified. Exceptions can be avoided if necessary.

Source:
Parameters:
Name Type Attributes Default Description
nationalIdentityCardNumber string <optional>

National identity card number Sri Lanka (Optional)

exceptionSwitch boolean <optional>
true

Designer-defined exceptions can be disabled.

Throws:
  • The parameter datatype does not match. A datatype of boolean is expected.

    Type
    TypeError
  • The ID number is not valid. The birthday module cannot be used without passing the validation test.

    Type
    Error

Members

identityNumber

Description:
  • This can be used to add a new national ID number to the birthday object. It will be executed only if the validity test is passed and if an invalid ID number is entered, the corresponding exception will be executed. In case of a new entry, use 'exception handling techniques' or use the 'validation' module to enter with prior validation.

Source:

This can be used to add a new national ID number to the birthday object. It will be executed only if the validity test is passed and if an invalid ID number is entered, the corresponding exception will be executed. In case of a new entry, use 'exception handling techniques' or use the 'validation' module to enter with prior validation.