jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1244454 - /incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/query/ResultSetFormatter.java
Date Wed, 15 Feb 2012 12:03:45 GMT
Author: andy
Date: Wed Feb 15 12:03:45 2012
New Revision: 1244454

URL: http://svn.apache.org/viewvc?rev=1244454&view=rev
Log:
Throw exception if syntax for a result set is not recognized.

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/query/ResultSetFormatter.java

Modified: incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/query/ResultSetFormatter.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/query/ResultSetFormatter.java?rev=1244454&r1=1244453&r2=1244454&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/query/ResultSetFormatter.java
(original)
+++ incubator/jena/Jena2/ARQ/trunk/src/main/java/com/hp/hpl/jena/query/ResultSetFormatter.java
Wed Feb 15 12:03:45 2012
@@ -32,6 +32,7 @@ import com.hp.hpl.jena.rdf.model.Model ;
 import com.hp.hpl.jena.rdf.model.RDFNode ;
 import com.hp.hpl.jena.rdf.model.Resource ;
 import com.hp.hpl.jena.shared.PrefixMapping ;
+import com.hp.hpl.jena.sparql.ARQException ;
 import com.hp.hpl.jena.sparql.ARQNotImplemented ;
 import com.hp.hpl.jena.sparql.core.Prologue ;
 import com.hp.hpl.jena.sparql.core.Var ;
@@ -357,7 +358,7 @@ public class ResultSetFormatter
             outputAsRDF(outStream, "N-TRIPLES", resultSet) ;
             return ;
         }
-        Log.warn(ResultSetFormatter.class, "Unknown ResultSetFormat: "+rFmt);
+        throw new ARQException("Unknown ResultSet format: "+rFmt);
     }
     
     /** Write out an RDF model that encodes the result set



Mime
View raw message