# Base class

Every module has a base class, called \<MODULENAME>.php in the base directory of the module. In this class you can define several functions for the module lifecycle, e.g. **activate, deactivate, install** and **uninstall.** Those functions will be called when the plugin gets installed, activated etc.

### Error messages

You can throw error messages during each of the lifecycle methods by throwing the basic \Exception() with the according error message in English language.\
The lifecycle process will be aborted and the error message gets displayed to the administrator.
