Moved throw errors to ErrorManager