Fredrik Lundh writes:
how about adding:
class XMLError(RuntimeError): pass
Looks like someone already added Error for this.
what's wrong with "SyntaxError"?
That would be the wrong exception unless it's parsing Python source code.
gotta fix netrc.py then...
And this still isn't done. I've made changes in my working copy, introducting a specific exception which carries useful information (msg, filename, lineno), so that all syntax exceptions get this information as well.