<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def configure_timeindex(self):
 """ Construct a DateTimeIndex with the queried temporal resolution, start- and end_snapshot. """


        try:

            ormclass = self._mapped['TempResolution']
            if self.version:
                tr = self.session.query(ormclass).filter(
                    ormclass.temp_id == self.temp_id).filter(
                        ormclass.version == self.version).one()
            else:
                tr = self.session.query(ormclass).filter(
                    ormclass.temp_id == self.temp_id).one()

        except (KeyError, NoResultFound):
            print('temp_id %s does not exist.' % self.temp_id)

        timeindex = pd.DatetimeIndex(start=tr.start_time,
                                     periods=tr.timesteps,
                                     freq=tr.resolution)

        self.timeindex = timeindex[self.start_snapshot - 1: self.end_snapshot]
        """ pandas.tseries.index.DateTimeIndex :
                Index of snapshots or timesteps. """