view engine/extensions/pychan/exceptions.py @ 306:6177cdf72489

- added new method to object class: getActionIds() - cleanup to *.i file (replaced redundant code by including header file) FEATURES: - objects can now provide a list of action ids of all actions they were set up with
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 08 Aug 2009 14:24:35 +0000
parents 54bfd1015b35
children aca5744f017a
line wrap: on
line source

# 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.
	"""

class PrivateFunctionalityError(RuntimeError):
	"""
	Exception raised if private attributes/functions are used.
	"""
	pass