[Error class creation]

- Creation of the error class
- Modifications in Loader and router class