##// END OF EJS Templates
error: add a new UnknownIdentifier error type...
Augie Fackler -
r24217:d2b81256 default
parent child Browse files
Show More
@@ -67,6 +67,15 b' class OutOfBandError(Exception):'
67 class ParseError(Exception):
67 class ParseError(Exception):
68 """Raised when parsing config files and {rev,file}sets (msg[, pos])"""
68 """Raised when parsing config files and {rev,file}sets (msg[, pos])"""
69
69
70 class UnknownIdentifier(ParseError):
71 """Exception raised when a {rev,file}set references an unknown identifier"""
72
73 def __init__(self, function, symbols):
74 from i18n import _
75 ParseError.__init__(self, _("unknown identifier: %s") % function)
76 self.function = function
77 self.symbols = symbols
78
70 class RepoError(Exception):
79 class RepoError(Exception):
71 def __init__(self, *args, **kw):
80 def __init__(self, *args, **kw):
72 Exception.__init__(self, *args)
81 Exception.__init__(self, *args)
General Comments 0
You need to be logged in to leave comments. Login now