summaryrefslogtreecommitdiffstats
path: root/gluster/swift/common/exceptions.py
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2013-07-08 14:10:45 -0400
committerLuis Pabon <lpabon@redhat.com>2013-07-10 15:49:26 -0700
commit677d30716978615d0499344ac0a62c2755a486cf (patch)
treeb86a156f120bdcd6f10d6b9998ef20b80cf50639 /gluster/swift/common/exceptions.py
parentf8d876248d29fa7f4857ac8ca02324795ba53353 (diff)
Final forward port of PDQ performance patches
Change-Id: I4ef131b3cc7648d4571a4d854029efb1aff8b901 Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/5305 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'gluster/swift/common/exceptions.py')
-rw-r--r--gluster/swift/common/exceptions.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/gluster/swift/common/exceptions.py b/gluster/swift/common/exceptions.py
index 75a95ec..ec74353 100644
--- a/gluster/swift/common/exceptions.py
+++ b/gluster/swift/common/exceptions.py
@@ -14,10 +14,22 @@
# limitations under the License.
+class GlusterFileSystemOSError(OSError):
+ pass
+
+
+class GlusterFileSystemIOError(IOError):
+ pass
+
+
class GlusterfsException(Exception):
pass
+class FailureToMountError(GlusterfsException):
+ pass
+
+
class FileOrDirNotFoundError(GlusterfsException):
pass
@@ -28,3 +40,7 @@ class NotDirectoryError(GlusterfsException):
class AlreadyExistsAsDir(GlusterfsException):
pass
+
+
+class AlreadyExistsAsFile(GlusterfsException):
+ pass