public static function delete($id) { self::validateId($id); if (!ScheduleFetcher::idExists($id)) { throw new Exception("Could not retrieve schedule to be deleted from database. <br/>\n Maybe some other administrator just deleted it?"); } ScheduleFetcher::delete($id); }