Added Shortener Error class and its constructor
Added more error handling