eric7/DebugClients/Python/coverage/exceptions.py

branch
eric7
changeset 8775
0802ae193343
child 8929
fcca2fa618bf
equal deleted inserted replaced
8774:d728227e8ebb 8775:0802ae193343
1 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3
4 """Exceptions coverage.py can raise."""
5
6
7 class BaseCoverageException(Exception):
8 """The base of all Coverage exceptions."""
9 pass
10
11
12 class CoverageException(BaseCoverageException):
13 """An exception raised by a coverage.py function."""
14 pass
15
16
17 class NoSource(CoverageException):
18 """We couldn't find the source for a module."""
19 pass
20
21
22 class NoCode(NoSource):
23 """We couldn't find any code at all."""
24 pass
25
26
27 class NotPython(CoverageException):
28 """A source file turned out not to be parsable Python."""
29 pass
30
31
32 class ExceptionDuringRun(CoverageException):
33 """An exception happened while running customer code.
34
35 Construct it with three arguments, the values from `sys.exc_info`.
36
37 """
38 pass
39
40
41 class StopEverything(BaseCoverageException):
42 """An exception that means everything should stop.
43
44 The CoverageTest class converts these to SkipTest, so that when running
45 tests, raising this exception will automatically skip the test.
46
47 """
48 pass
49
50
51 class CoverageWarning(Warning):
52 """A warning from Coverage.py."""
53 pass

eric ide

mercurial