The 'error' class created

...and refactoring