# Error Demotion in OVM?

**URL:** <https://verificationacademy.com/forums/t/error-demotion-in-ovm/25817>\
**Category:** OVM\
**Tags:** OVM\
**Created:** [October 2, 2008, 12:34pm UTC](https://verificationacademy.com/forums/t/error-demotion-in-ovm/25817 "2008-10-02T12:34:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mglasser](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mglasser](https://verificationacademy.com/forums/u/mglasser)\
**Post date:** [October 5, 2008, 3:54am UTC](https://verificationacademy.com/forums/t/error-demotion-in-ovm/25817/3 "2008-10-05T03:54:25Z")

</div>

Well, there is a way, if you want to dig a little deeper into the reporting system.

The ovm\_report\_\* functions delegate to a function called report() in the report handler. The severity level is an argument to report(). So, you could write your own delegation function where severity is a variable and change the value of that variable depending on your application.

For example

```auto
class my_report_component extends ovm_component;
 
  function new(string name, ovm_component parent);
    super.new(name, parent);
  endfunction
 
  virtual function void report(ovm_severity severity, string id, string msg, 
                               int verbosity=OVM_MEDIUM,
                               string filename="", int lineno=0);
    m_rh.report(severity, get_full_name(), id, msg, verbosity, 
                filename, lineno, this);
  endfunction
 
endclass

```

Now when you derive your components from my\_report\_component you can call report() and pass in the severity level as an argument. I’ve shown a default value for the verbosity argument, when you call report() you may want to supply an explicit verbosity argument that is consistent with the severity level argument.

– Mark

---

_[View the full topic](https://verificationacademy.com/forums/t/error-demotion-in-ovm/25817)._
