proper creation of custom exception
Merge pull request #58 from louisameline/exception

Fixed the way custom errors are created