Only throw exceptions if there are errors, warnings are also contained in the Error collection