DomDocument::loadXml not throwing exceptions in PHP

Is there a good way of trapping runtime errors using loadXml with the DomDocument library?
Programming, PHP, JavaScript, motorbikes, pubs, poker, football, news, restaurants and anything else
Is there a good way of trapping runtime errors using loadXml with the DomDocument library?