'Throw the original exception into the given generator, preserving
traceback information if available. In the case of a L{CopiedFailure}
where the exception type is a string, a L{pb.RemoteError} is thrown
instead.
@return: The next value yielded from the generator.
@raise StopIteration: If there are no more values in the generator.
@raise RemoteError: The wrapped remote exception.'

def throwExceptionIntoGenerator(self, g):

    return g.throw(RemoteError(self.type, self.value, self.traceback))
