Getting a config db variable value in higher hierarchy

In reply to chr_sue:

So, then this should work?

case(uvm_config_db#(int)::get(this, “”, “error_source”, error_source))

ERROR_FROM_SEQUENCE : uvm_do_with(item, {item.data == 100;}) ERROR_FROM_CALLBACK : uvm_do_with(item, {item.data == 300;})
endcase