1 10 11 package com.triactive.jdo.store; 12 13 import java.util.Collection ; 14 import java.util.Iterator ; 15 import javax.jdo.JDODataStoreException; 16 17 18 28 29 public class SchemaValidationException extends JDODataStoreException 30 { 31 37 38 public SchemaValidationException(String msg) 39 { 40 super(msg); 41 } 42 43 44 51 52 public SchemaValidationException(String msg, Exception nested) 53 { 54 super(msg, nested); 55 } 56 57 58 65 66 protected static String toString(Collection objs) 67 { 68 if (objs.isEmpty()) 69 return "<none>"; 70 else 71 { 72 StringBuffer s = new StringBuffer (); 73 Iterator i = objs.iterator(); 74 75 while (i.hasNext()) 76 { 77 if (s.length() > 0) 78 s.append(", "); 79 80 s.append(i.next()); 81 } 82 83 return s.toString(); 84 } 85 } 86 } 87 | Popular Tags |