added standard exceptions thrown for cases in which malformed xml is given to rosafactory for processing.