Intent error messages

Where is this thrown? I've been trying to wrap Every XPath exception that can get thrown in a parser inside of the XForm aprsing itself and turning them into XFormParseExceptions to prevent us needing to fan it out wherever we use the parser