3
NotFoundError = FileNotFoundError
5
NotFoundError = IOError
8
class AlreadyRunningError(RuntimeError):
12
class ReadmeNotFoundError(NotFoundError):
14
This class inherits from FileNotFoundError on Python 3 and above.
16
def __init__(self, path=None, message=None):
18
self.message = message
19
super(ReadmeNotFoundError, self).__init__(
20
errno.ENOENT, 'README not found', path)
23
return '{0}({!r}, {!r})'.format(
24
type(self).__name__, self.path, self.message)
30
if self.path is not None:
31
return 'No README found at {0}'.format(self.path)