summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-07-05 16:28:04 +0100
committerAngelos Evripiotis <angelos.evripiotis@gmail.com>2019-07-09 20:48:09 +0000
commiteb653a94f950947735e570f658e2e71c7c674861 (patch)
treed005afad0bea36148b38ca926807639a9d847bf9
parenta2c63af692941459be1e65776f30c42e06287230 (diff)
downloadbuildstream-eb653a94f950947735e570f658e2e71c7c674861.tar.gz
_casbaseddirectory: rm unused exception classes
-rw-r--r--src/buildstream/storage/_casbaseddirectory.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/buildstream/storage/_casbaseddirectory.py b/src/buildstream/storage/_casbaseddirectory.py
index a93f16d90..0d43e3bc5 100644
--- a/src/buildstream/storage/_casbaseddirectory.py
+++ b/src/buildstream/storage/_casbaseddirectory.py
@@ -62,35 +62,6 @@ class IndexEntry():
return self.buildstream_object._get_digest()
-class ResolutionException(VirtualDirectoryError):
- """ Superclass of all exceptions that can be raised by
- CasBasedDirectory._resolve. Should not be used outside this module. """
-
-
-class InfiniteSymlinkException(ResolutionException):
- """ Raised when an infinite symlink loop is found. """
-
-
-class AbsoluteSymlinkException(ResolutionException):
- """Raised if we try to follow an absolute symlink (i.e. one whose
- target starts with the path separator) and we have disallowed
- following such symlinks.
- """
-
-
-class UnexpectedFileException(ResolutionException):
- """Raised if we were found a file where a directory or symlink was
- expected, for example we try to resolve a symlink pointing to
- /a/b/c but /a/b is a file.
- """
- def __init__(self, message=""):
- """Allow constructor with no arguments, since this can be raised in
- places where there isn't sufficient information to write the
- message.
- """
- super().__init__(message)
-
-
# CasBasedDirectory intentionally doesn't call its superclass constuctor,
# which is meant to be unimplemented.
# pylint: disable=super-init-not-called