summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-10 01:38:11 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-10 01:38:11 +0000
commite8ea64303f1d2600d3110eabd9a29f8a72a32741 (patch)
tree4b5a0b1d5eada1e832c749f44a574958558ea47a
parenteab8247a423dd29f307aff1362055904ef5a9818 (diff)
downloadpyfilesystem-e8ea64303f1d2600d3110eabd9a29f8a72a32741.tar.gz
add new error class "RemoteConnectionError"
git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@164 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/errors.py b/fs/errors.py
index daa026b..e345499 100644
--- a/fs/errors.py
+++ b/fs/errors.py
@@ -50,6 +50,12 @@ class UnsupportedError(OperationFailedError):
default_message = "Unable to %(opname)s: not supported by this filesystem"
+class RemoteConnectionError(OperationFailedError):
+ """Exception raised when operation encounter remote connection trouble."""
+ default_message = "Unable to %(opname)s: remote connection errror"
+
+
+
class ResourceError(FSError):
"""Base exception class for error associated with a specific resource."""