Invalid period error
Bases: Exception
Exception raised for errors in the period format.
Attributes:
| Name | Type | Description |
|---|---|---|
period |
str
|
The invalid period that caused the error. |
message |
str
|
Explanation of the error. |
Source code in hazbin_hotel/src/exceptions/room/invalid_period_error.py
__init__(period)
Initializes InvalidPeriodError with the invalid period.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
period
|
str
|
The period string that is invalid. |
required |