Why are the test cases failing

Hi,
I want to know a detailed description of test cases which are failing , because with whatever data I am testing the results are accurate.
Also , would like to know what does the constraint part means , should we have some exception handling to check if the input is satisfying the constraint condition ? If so , how , we can handle that in our code using any other logic whereas the test case would be using a different logic