aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-20 11:21:46 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-20 11:21:46 -0500
commit24dc59315e10f332db62aa1c5fbfbaf664b5b6d0 (patch)
tree9d14af4a2896e37731a40cc9b1c9f32858f40066
parent9c48b33fe36b066e79443d9ebf29f1cf79ca1f21 (diff)
downloaddotfiles-24dc59315e10f332db62aa1c5fbfbaf664b5b6d0.tar.gz
dotfiles-24dc59315e10f332db62aa1c5fbfbaf664b5b6d0.tar.bz2
dotfiles-24dc59315e10f332db62aa1c5fbfbaf664b5b6d0.zip
Remove unused exception classes
-rw-r--r--dotfiles/exceptions.py26
1 files changed, 4 insertions, 22 deletions
diff --git a/dotfiles/exceptions.py b/dotfiles/exceptions.py
index e6939b2..9623ecc 100644
--- a/dotfiles/exceptions.py
+++ b/dotfiles/exceptions.py
@@ -9,12 +9,6 @@ class DotfileException(Exception):
return 'ERROR: %s' % self.message
-class TargetIgnored(DotfileException):
-
- def __init__(self, path):
- DotfileException.__init__(self, path, 'targets an ignored file')
-
-
class IsDirectory(DotfileException):
def __init__(self, path):
@@ -45,28 +39,16 @@ class NotRootedInHome(DotfileException):
DotfileException.__init__(self, path, 'not rooted in home directory')
-class IsNested(DotfileException):
-
- def __init__(self, path):
- DotfileException.__init__(self, path, 'is nested')
-
-
-class NotADotfile(DotfileException):
-
- def __init__(self, path):
- DotfileException.__init__(self, path, 'is not a dotfile')
-
-
-class DoesNotExist(DotfileException):
+class Exists(DotfileException):
def __init__(self, path):
- DotfileException.__init__(self, path, 'doest not exist')
+ DotfileException.__init__(self, path, 'already exists')
-class Exists(DotfileException):
+class TargetIgnored(DotfileException):
def __init__(self, path):
- DotfileException.__init__(self, path, 'already exists')
+ DotfileException.__init__(self, path, 'targets an ignored file')
class TargetExists(DotfileException):