 
 import UIKit
 
+/*
+ * public enum PVRSchedulerError:Error
+ * - Describles the errors that may occur when using PVRScheduler
+*/
 public enum PVRSchedulerError:Error
 {
-    case DataMissing
+    case DurationOverflow /* Schedulable duration is insufficent to schedule all tasks*/
 }
 
 

    weak var dataCtrl:PVRDataController! /* Link to Data Controller
                                          * NOTE: Will Terminate executable if Missing
                                         */
    var dataViewCtrl:PVRDataController /*Link to Data View Data controller */
    var dataView:PVRDataView /*Link to Data View */

    //Data
    var scheduleDuration:[PVRDuration] /* Schedulable Duration sorted by date until Last Task Date*/

    //Methods
    /*
     * init(datactrl:PVRDataController)

        self.dataCtrl = dataCtrl
        self.dataView = PVRDataView(db: dataCtrl.DB)
        self.dataViewCtrl = PVRDataController(db: self.dataView)
        self.sch_date = NSDate.distantPast as NSDate
        self.sch_affinity = true
        self.schedule = Dictionary<PVRDuration,Array<PVRTask>>()
        self.setting = (UIApplication.shared.delegate as! AppDelegate).setting

        super.init()
    }
