diff options
-rw-r--r-- | dotfiles/exceptions.py | 26 |
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): |