Move errors to their own package