1 6 7 package javax.portlet; 8 9 import java.util.ArrayList ; 10 import java.util.Collection ; 11 import java.util.Collections ; 12 import java.util.Enumeration ; 13 14 19 20 public class ValidatorException extends PortletException 21 { 22 23 private transient ArrayList failedKeyVector = new ArrayList (); 24 25 private ValidatorException () 26 { 27 } 28 29 41 42 public ValidatorException (String text, Collection failedKeys) 43 { 44 super (text); 45 if ( failedKeys != null ) 46 failedKeyVector.addAll(failedKeys); 47 } 48 49 69 70 public ValidatorException (String text, Throwable cause, Collection failedKeys) 71 { 72 super(text, cause); 73 if ( failedKeys != null ) 74 failedKeyVector.addAll(failedKeys); 75 } 76 77 90 91 public ValidatorException (Throwable cause, Collection failedKeys) 92 { 93 super(cause); 94 if ( failedKeys != null ) 95 failedKeyVector.addAll(failedKeys); 96 } 97 98 99 109 110 public Enumeration getFailedKeys() 111 { 112 return Collections.enumeration(failedKeyVector); 113 } 114 } 115 | Popular Tags |