Bypassing register access error from reg model or reg map

In reply to mitesh.patel:

REG is read-only. Cannot call write() method
error is like if we write into read only register or vice versa.

could you please tell me how to send this error to monitor or scoreboard.