Error class for termination.
terminated_error(optim_instance)
optim_instance
OptimInstance OptimInstance that terminated.