- Tree classes:
- WAThrowable [New]
- WAException [New]
- Direct knows subclasses:
The class DB_DateException
is thrown when any error occurs into the DB_Date methods.
This is an exception and you should capture it with a try-catch code in your application when you use dates.
The possible sent messages are:
- DB_Date.badinit: The initialization date is not recognized.
- DB_Date.badzone: The zone is out of authorized bounds -12 to 12:
- DB_Date.baddateobject: The date is not a DB_Date object.
- DB_Date.baddateunix: The date cannot be converted to Unix Time.
- DB_Date.badyear: The year is out of authorized bounds: 1-9999:
- DB_Date.badmonth: The month is out of authorized bounds 1-12:
- DB_Date.daywithoutmonth: The day cannot be set without setting month and year before.
- DB_Date.badday: The day is out of authorized bounds 1-28/31:
- DB_Date.badhour: The hour is out of authorized bounds 0-23:
- DB_Date.badminutes: The minutes are out of authorized bounds 0-59:
- DB_Date.badseconds: The seconds are out of authorized bounds 0-59:
- DB_Date.badcents: The cents are out of authorized bounds 0-99:
- DB_Date.baddateformat: The date has a bad format:
3.1. Constructor:DB_DateException($message) $message
contains the message to notify the exception.