Adds error handling to ctor. Checks for existence of Error name