If error comes then test will displayed as pass

I have a scenario like I’m reading data from an address where the data will be x so in apb monitor will give error for this. If I got this error then test should be pass other wise it is failed. Can anyone help me out to do this

In reply to karthy_raj:

There are a couple of ways to do this. It’s best if your error message has a unique ID to be selected.

You can use uvm_report_severity_override to demote your error to a warning and then use get_id_count to make sure the count is nonzero.

You can use uvm_report_catcher to demote your error, and also set a status bit that your scoreboard will look for to make sure it has been set. If your message does not have a unique ID, you would have to use this to parse the message.

In reply to dave_59:
Thank dave,
Can you please give an example for set_report_severity_override.

In reply to karthy_raj:

In reply to dave_59:
Hi Dave,
I’m demonted the error using below statement.
m_env.m_agent[0].m_monitor.set_report_severity_id_override(UVM_ERROR,“parity_err”,UVM_INFO);
Now I want to count the error which is domonted with an example