throws exception with data and errors in it.