catch (SAXParseException e) {
ErrorInfo errInfo = new ErrorInfo(ErrorType.MALFORMED_DATA, e.getMessage());
throw new ClientHTTPException(SC_BAD_REQUEST, errInfo.toString());
}
catch (SAXException e) {
throw new ServerHTTPException("Failed to parse transaction data: " + e.getMessage(), e);
}
catch (IOException e) {
throw new ServerHTTPException("Failed to read data: " + e.getMessage(), e);
}
catch (RepositoryException e) {
throw new ServerHTTPException("Repository update error: " + e.getMessage(), e);
}
}