blob: baf651b80983be1bca1999f7ef084eae612463ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#
__version__ = '2.4.0.dev1'
from .hookspecs import hookspec, hookimpl # noqa
class exception:
class Error(Exception):
def __str__(self):
return "%s: %s" % (self.__class__.__name__, self.args[0])
class ConfigError(Error):
""" error in tox configuration. """
class UnsupportedInterpreter(Error):
"signals an unsupported Interpreter"
class InterpreterNotFound(Error):
"signals that an interpreter could not be found"
class InvocationError(Error):
""" an error while invoking a script. """
class MissingFile(Error):
""" an error while invoking a script. """
class MissingDirectory(Error):
""" a directory did not exist. """
class MissingDependency(Error):
""" a dependency could not be found or determined. """
class MinVersionError(Error):
""" the installed tox version is lower than requested minversion. """
def __init__(self, message):
self.message = message
super(exception.MinVersionError, self).__init__(message)
from tox.session import main as cmdline # noqa
|