You can use XPath expressions to determine which error occurred and handle the error accordingly. For example, in the above error schema, if the FileAlreadyExistsException error occurs, then that node is not empty. The following expression can be used to determine if the FileAlreadyExistsException occurred: