Home | History | Annotate | Download | only in feaLib
      1 from __future__ import print_function, division, absolute_import
      2 from __future__ import unicode_literals
      3 
      4 
      5 class 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 
     19 class IncludedFeaNotFound(FeatureLibError):
     20     pass
     21