Only throw exception is there are errors, warnings are also contained in the Error collection