Exact solutions to the motion of two charged particles in lineal gravity