From 24dc59315e10f332db62aa1c5fbfbaf664b5b6d0 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Wed, 20 Jan 2016 11:21:46 -0500 Subject: Remove unused exception classes --- dotfiles/exceptions.py | 26 ++++---------------------- 1 file 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): -- cgit v1.2.3