Added a custom error class that inherits from StandardError
In order to create my own custom error handling