What is difference between ignore bins and illegal bins

In reply to arshi ali:

Your testbench should never hit illegal_bins. If it does, your testbench or design has a problem and all coverage is meaningless.

I would avoid using illegal_bins as a checker because unlike an assertion or a UVM error, there is no facility to control reporting of illegal_bin errors.