<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_connection(self):
 """Get a connection to this Database. Connections are retrieved from a pool. """

        if not self.open:
            raise exc.ResourceClosedError('Database closed.')

        return Connection(self._engine.connect())