diff options
Diffstat (limited to 'buildscripts/resmokelib/errors.py')
-rw-r--r-- | buildscripts/resmokelib/errors.py | 56 |
1 files changed, 22 insertions, 34 deletions
diff --git a/buildscripts/resmokelib/errors.py b/buildscripts/resmokelib/errors.py index 6ec329c14b5..8f49a567a79 100644 --- a/buildscripts/resmokelib/errors.py +++ b/buildscripts/resmokelib/errors.py @@ -1,59 +1,47 @@ -""" -Exceptions raised by resmoke.py. -""" +"""Exceptions raised by resmoke.py.""" -class ResmokeError(Exception): - """ - Base class for all resmoke.py exceptions. - """ +class ResmokeError(Exception): # noqa: D204 + """Base class for all resmoke.py exceptions.""" pass -class SuiteNotFound(ResmokeError): - """ - A suite that isn't recognized was specified. - """ +class SuiteNotFound(ResmokeError): # noqa: D204 + """A suite that isn't recognized was specified.""" pass -class StopExecution(ResmokeError): - """ - Exception that is raised when resmoke.py should stop executing tests - if failing fast is enabled. - """ +class StopExecution(ResmokeError): # noqa: D204 + """Exception raised when resmoke.py should stop executing tests if failing fast is enabled.""" pass -class UserInterrupt(StopExecution): - """ - Exception that is raised when a user signals resmoke.py to - unconditionally stop executing tests. - """ +class UserInterrupt(StopExecution): # noqa: D204 + """Exception raised when a user signals resmoke.py to unconditionally stop executing tests.""" pass -class TestFailure(ResmokeError): - """ - Exception that is raised by a hook in the after_test method if it - determines the the previous test should be marked as a failure. +class TestFailure(ResmokeError): # noqa: D204 + """Exception raised by a hook in the after_test method. + + Raised if it determines the the previous test should be marked as a failure. """ pass -class ServerFailure(TestFailure): - """ - Exception that is raised by a hook in the after_test method if it - detects that the fixture did not exit cleanly and should be marked +class ServerFailure(TestFailure): # noqa: D204 + """Exception raised by a hook in the after_test method. + + Raised if it detects that the fixture did not exit cleanly and should be marked as a failure. """ pass -class PortAllocationError(ResmokeError): - """ - Exception that is raised by the PortAllocator if a port is requested - outside of the range of valid ports, or if a fixture requests more - ports than were reserved for that job. +class PortAllocationError(ResmokeError): # noqa: D204 + """Exception that is raised by the PortAllocator. + + Raised if a port is requested outside of the range of valid ports, or if a + fixture requests more ports than were reserved for that job. """ pass |