validateParsedUpdate(update) ;
return update ;
}
catch (com.hp.hpl.jena.sparql.lang.sparql_11.ParseException ex)
{
throw new QueryParseException(ex.getMessage(),
ex.currentToken.beginLine,
ex.currentToken.beginColumn
) ; }
catch (com.hp.hpl.jena.sparql.lang.sparql_11.TokenMgrError tErr)
{
// Last valid token : not the same as token error message - but this should not happen
int col = parser.token.endColumn ;
int line = parser.token.endLine ;
throw new QueryParseException(tErr.getMessage(), line, col) ; }
catch (UpdateException ex) { throw ex ; }
catch (JenaException ex) { throw new QueryException(ex.getMessage(), ex) ; }
catch (Error err)
{
// The token stream can throw errors.
throw new QueryParseException(err.getMessage(), err, -1, -1) ;
}
catch (Throwable th)
{
Log.fatal(this, "Unexpected throwable: ",th) ;
throw new QueryException(th.getMessage(), th) ;