summaryrefslogtreecommitdiff
path: root/ick2/exceptions.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-10-18 10:49:24 +0300
committerLars Wirzenius <liw@liw.fi>2019-10-18 10:49:24 +0300
commit5822e79a9355970a1190194e351a4761e9db6859 (patch)
tree83947c82747eb7404a575e40594e9afd059bfd08 /ick2/exceptions.py
parenta799ddebdc516dba40a846e7e370825049cd97d7 (diff)
downloadick2-5822e79a9355970a1190194e351a4761e9db6859.tar.gz
Revert "Change: move exceptions to exceptions.py, rename persitent.py"
This reverts commit 066664763f16318076e34d702cce746b2fd4afca.
Diffstat (limited to 'ick2/exceptions.py')
-rw-r--r--ick2/exceptions.py18
1 files changed, 1 insertions, 17 deletions
diff --git a/ick2/exceptions.py b/ick2/exceptions.py
index bd394af..3af7ff0 100644
--- a/ick2/exceptions.py
+++ b/ick2/exceptions.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017-2019 Lars Wirzenius
+# Copyright (C) 2017-2018 Lars Wirzenius
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -18,28 +18,12 @@ class IckException(Exception):
pass
-class NotFound(Exception):
-
- def __init__(self, kind, name):
- super().__init__(
- 'Resource {}:{} not found'.format(
- kind or "unknown", name or "unknown"))
-
-
class ExistsAlready(IckException):
def __init__(self, name):
super().__init__('Resource {} already exists'.format(name))
-class Conflict(IckException):
-
- def __init__(self, rid, expected, got):
- super().__init__(
- 'Update conflict for {}: expected revision {}, got {}'.format(
- rid, expected, got))
-
-
class BadUpdate(IckException):
def __init__(self, how):