Mercurial > fife-parpg
diff engine/extensions/pychan/exceptions.py @ 0:4a0efb7baf70
* Datasets becomes the new trunk and retires after that :-)
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 29 Jun 2008 18:44:17 +0000 |
parents | |
children | 31718fa356f8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/engine/extensions/pychan/exceptions.py Sun Jun 29 18:44:17 2008 +0000 @@ -0,0 +1,30 @@ +# coding: utf-8 + +class PyChanException(Exception): + """ + Base exception class for PyChan. + All exceptions raised by PyChan derive from this. + """ + pass + +class InitializationError(PyChanException): + """ + Exception raised during the initialization. + """ + pass + +class RuntimeError(PyChanException): + """ + Exception raised during the run time - for example caused by a missing name attribute in a XML file. + """ + pass + +class GuiXMLError(PyChanException): + """ + An error that occured during parsing an XML file. + """ + +class ParserError(PyChanException): + """ + An error that occured during parsing an attribute. + """