1 10 11 package org.picocontainer.defaults; 12 13 import org.picocontainer.PicoRegistrationException; 14 15 19 public class DuplicateComponentKeyRegistrationException extends PicoRegistrationException { 20 private Object key; 21 22 public DuplicateComponentKeyRegistrationException(Object key) { 23 super("Key " + key + " duplicated"); 24 this.key = key; 25 } 26 27 public Object getDuplicateKey() { 28 return key; 29 } 30 } 31 | Popular Tags |