Got the error handling wrong. Going to make a new constructor for Error