The exponential integrator scheme for stochastic partial differential equations: Pathwise error bounds