summaryrefslogtreecommitdiffstats
path: root/pendulum/tz/exceptions.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-17 14:32:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-17 14:32:20 +0000
commitdb51f7f103bbbd6c91c8f47d75b3482ef8939691 (patch)
treeab59b1147bd0cd39f31a48073cff236ede4ec1df /pendulum/tz/exceptions.py
parentAdding upstream version 3.0.0~a1. (diff)
downloadpendulum-upstream.tar.xz
pendulum-upstream.zip
Adding upstream version 3.0.0.upstream/3.0.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pendulum/tz/exceptions.py')
-rw-r--r--pendulum/tz/exceptions.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/pendulum/tz/exceptions.py b/pendulum/tz/exceptions.py
deleted file mode 100644
index b8833ac..0000000
--- a/pendulum/tz/exceptions.py
+++ /dev/null
@@ -1,32 +0,0 @@
-from __future__ import annotations
-
-from typing import TYPE_CHECKING
-
-if TYPE_CHECKING:
- from datetime import datetime
-
-
-class TimezoneError(ValueError):
- pass
-
-
-class InvalidTimezone(TimezoneError):
- pass
-
-
-class NonExistingTime(TimezoneError):
- message = "The datetime {} does not exist."
-
- def __init__(self, dt: datetime) -> None:
- message = self.message.format(dt)
-
- super().__init__(message)
-
-
-class AmbiguousTime(TimezoneError):
- message = "The datetime {} is ambiguous."
-
- def __init__(self, dt: datetime) -> None:
- message = self.message.format(dt)
-
- super().__init__(message)