Update of /var/cvs/src/org/mmbase/storage
In directory james.mmbase.org:/tmp/cvs-serv11871

Modified Files:
        StorageManagerFactory.java 
Log Message:
The IllegalArgumentException of MessageFormat is a bit unhelpful, wrapping it 
it in a versin which shows the pattern it was trying to parse, which may throw 
much more light on the issue


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/storage


Index: StorageManagerFactory.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/storage/StorageManagerFactory.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- StorageManagerFactory.java  27 Apr 2009 12:06:01 -0000      1.38
+++ StorageManagerFactory.java  27 Apr 2009 17:45:22 -0000      1.39
@@ -38,7 +38,7 @@
  *
  * @author Pierre van Rooden
  * @since MMBase-1.7
- * @version $Id: StorageManagerFactory.java,v 1.38 2009/04/27 12:06:01 michiel 
Exp $
+ * @version $Id: StorageManagerFactory.java,v 1.39 2009/04/27 17:45:22 michiel 
Exp $
  */
 public abstract class StorageManagerFactory<SM extends StorageManager> {
 
@@ -487,7 +487,11 @@
         Scheme scheme = (Scheme) getAttribute(key);
         if (scheme == null && defaultPattern != null) {
             if (attributes.containsKey(key)) return null;
+            try {
             scheme = new Scheme(this, defaultPattern);
+            } catch (IllegalArgumentException iae) {
+                throw new IllegalArgumentException("pattern: " + 
defaultPattern  + " " + iae.getMessage(), iae);
+            }
             setAttribute(key, scheme);
         }
         return scheme;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to