From 677d30716978615d0499344ac0a62c2755a486cf Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Mon, 8 Jul 2013 14:10:45 -0400 Subject: Final forward port of PDQ performance patches Change-Id: I4ef131b3cc7648d4571a4d854029efb1aff8b901 Signed-off-by: Peter Portante Reviewed-on: http://review.gluster.org/5305 Reviewed-by: Luis Pabon Tested-by: Luis Pabon --- gluster/swift/common/exceptions.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gluster/swift/common/exceptions.py') 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 -- cgit