add errorInfo factory