I have used this
err.catcher.add_message_text_to_demote(“/string that you want to demote/”)
but still not working
In reply to ahota:
The add_message_text_to_demote() method not part of the UVM base class library. You will need to contact the author of that VIP directly.