class InvalidPidFileError(Exception):
    """ An exception when an invalid PID file is read."""

class PidFileExistsError(Exception):
    """ An exception when a PID file already exists."""

@@ -179,12 +179,123 @@
  exists.%22%22%22%0A
+%0Aclass InvalidPidDirectoryError(Exception):%0A    %22%22%22 An exception when an invalid PID directory is detected.%22%22%22%0A

Add a new exception since we are making a directory now.