How to exit from simulation on getting UVM_ERROR

In reply to dave_59:

Thank you dave , UVM_MAX_QUIT_COUNT is working fine for my requirement.

but the suggestions you have given for escaping the “|” operator didn’t work.

i am using c shell, Please suggest me how to escape the pipe operator .

Thanks .