diff options
author | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-11-24 17:40:11 +0000 |
---|---|---|
committer | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-11-24 17:40:11 +0000 |
commit | 414513daf0f0a816b0316e33e96abee6e1d08486 (patch) | |
tree | 406d61345d883820f432118a810ac3da82f29b44 /fs/errors.py | |
parent | 17c48538ae56ddda5869613c33edee524b834658 (diff) | |
download | pyfilesystem-414513daf0f0a816b0316e33e96abee6e1d08486.tar.gz |
InvalidCharsInPathError
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@830 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/errors.py')
-rw-r--r-- | fs/errors.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/errors.py b/fs/errors.py index 04da17f..eea21d0 100644 --- a/fs/errors.py +++ b/fs/errors.py @@ -11,6 +11,7 @@ catch-all exception. __all__ = ['FSError', 'CreateFailedError', 'PathError', + 'InvalidCharsInPathError', 'OperationFailedError', 'UnsupportedError', 'RemoteConnectionError', @@ -32,7 +33,7 @@ __all__ = ['FSError', 'NoMMapError', 'BackReferenceError', 'convert_fs_errors', - 'convert_os_errors' + 'convert_os_errors', ] import sys @@ -42,10 +43,6 @@ from fs.path import * from fs.local_functools import wraps -class InvalidPathError(Exception): - pass - - class FSError(Exception): """Base exception class for the FS module.""" default_message = "Unspecified error" @@ -71,7 +68,6 @@ class FSError(Exception): return (self.__class__,(),self.__dict__.copy(),) - class CreateFailedError(FSError): """An exception thrown when a FS could not be created""" default_message = "Unable to create filesystem" @@ -87,6 +83,10 @@ class PathError(FSError): super(PathError,self).__init__(**kwds) +class InvalidCharsInPathError(PathError): + default_message = "Path contains invalid characters: %(path)s" + + class OperationFailedError(FSError): """Base exception class for errors associated with a specific operation.""" default_message = "Unable to %(opname)s: unspecified error [%(errno)s - %(details)s]" |