File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,29 @@ The :mod:`calendar` module exports the following data attributes:
417
417
418
418
Aliases for day numbers, where ``MONDAY `` is ``0 `` and ``SUNDAY `` is ``6 ``.
419
419
420
+
421
+ The :mod: `calendar ` module defines the following exceptions:
422
+
423
+ .. exception :: IllegalMonthError(month)
424
+
425
+ A subclass of :exc: `ValueError `,
426
+ raised when the given month number is outside of the range 1-12 (inclusive).
427
+
428
+ .. attribute :: month
429
+
430
+ The invalid month number.
431
+
432
+
433
+ .. exception :: IllegalWeekdayError(weekday)
434
+
435
+ A subclass of :exc: `ValueError `,
436
+ raised when the given weekday number is outside of the range 0-6 (inclusive).
437
+
438
+ .. attribute :: weekday
439
+
440
+ The invalid weekday number.
441
+
442
+
420
443
.. seealso ::
421
444
422
445
Module :mod: `datetime `
You can’t perform that action at this time.
0 commit comments