• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from __future__ import print_function, division, absolute_import
2from __future__ import unicode_literals
3
4
5class FeatureLibError(Exception):
6    def __init__(self, message, location):
7        Exception.__init__(self, message)
8        self.location = location
9
10    def __str__(self):
11        message = Exception.__str__(self)
12        if self.location:
13            path, line, column = self.location
14            return "%s:%d:%d: %s" % (path, line, column, message)
15        else:
16            return message
17
18
19class IncludedFeaNotFound(FeatureLibError):
20    pass
21