diff options
Diffstat (limited to 'pym/portage_exception.py')
-rw-r--r-- | pym/portage_exception.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage_exception.py b/pym/portage_exception.py index 52c1360f6..54127beb4 100644 --- a/pym/portage_exception.py +++ b/pym/portage_exception.py @@ -123,6 +123,13 @@ class InvalidPackageName(PortagePackageException): def __str__(self): return repr(self.value) +class UnsupportedAPIException(PortagePackageException): + """Unsupported API""" + def __init__(self, cpv, api): + self.cpv = cpv + self.api = api + def __str__(self): + return "Unable to do any operations on '%s', due to the fact it's EAPI is higher then this portage versions. Please upgrade to a portage version that supports EAPI %s" % (self.cpv, self.eapi) |