How do you continue to the next one when you encounter an error while training with a trainer, similar to the continue operation?

How do you continue to the next one when you encounter an error while training with a trainer, similar to the continue operation?