1 23 24 package org.apache.slide.common; 25 26 import java.util.Vector ; 27 import java.util.Enumeration ; 28 29 34 public class NamespaceException extends SlideException { 35 36 37 39 40 45 public NamespaceException(String message) { 46 super(message, false); 47 exceptions = new Vector (); 48 } 49 50 51 53 54 57 private Vector exceptions; 58 59 60 62 63 68 public String toString() { 69 String result = new String (); 70 if( exceptions != null ) { 71 Enumeration list = exceptions.elements(); 72 while (list.hasMoreElements()) { 73 SlideException e = (SlideException) list.nextElement(); 74 result = result + e.getMessage() + "\n"; 75 } 76 } 77 return result; 78 } 79 80 81 83 84 89 void addException(SlideException exception) { 90 exceptions.addElement(exception); 91 } 92 93 94 99 boolean isEmpty() { 100 return exceptions.isEmpty(); 101 } 102 103 } 104 | Popular Tags |