clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r923661 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.triaxrs/org.apache.clerezza.triaxrs/src/main/java/org/apache/clerezza/triaxrs/headerDelegate/MediaTypeProvider.java
Date Tue, 16 Mar 2010 10:13:01 GMT
Author: reto
Date: Tue Mar 16 10:13:01 2010
New Revision: 923661

URL: http://svn.apache.org/viewvc?rev=923661&view=rev
Log:
More informative message in exception

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.triaxrs/org.apache.clerezza.triaxrs/src/main/java/org/apache/clerezza/triaxrs/headerDelegate/MediaTypeProvider.java

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.triaxrs/org.apache.clerezza.triaxrs/src/main/java/org/apache/clerezza/triaxrs/headerDelegate/MediaTypeProvider.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.triaxrs/org.apache.clerezza.triaxrs/src/main/java/org/apache/clerezza/triaxrs/headerDelegate/MediaTypeProvider.java?rev=923661&r1=923660&r2=923661&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.triaxrs/org.apache.clerezza.triaxrs/src/main/java/org/apache/clerezza/triaxrs/headerDelegate/MediaTypeProvider.java
(original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.triaxrs/org.apache.clerezza.triaxrs/src/main/java/org/apache/clerezza/triaxrs/headerDelegate/MediaTypeProvider.java
Tue Mar 16 10:13:01 2010
@@ -94,7 +94,7 @@ public class MediaTypeProvider implement
 
             return new MediaType(type,subType,params);
         } catch (ParseException ex) {
-            throw new IllegalArgumentException(ex);
+            throw new IllegalArgumentException("cannot parse "+header,ex);
         }
     }
 }
\ No newline at end of file



Mime
View raw message