1 9 10 package org.picocontainer; 11 12 import java.lang.reflect.Method ; 13 14 public class PicoLifecycleException extends PicoException { 15 16 private final Method method; 17 private final Object instance; 18 19 public PicoLifecycleException(final Method method, final Object instance, final RuntimeException cause) { 20 super(cause); 21 this.method = method; 22 this.instance = instance; 23 } 24 25 public Method getMethod() { 26 return method; 27 } 28 29 public Object getInstance() { 30 return instance; 31 } 32 33 public String getMessage() { 34 return "PicoLifecycleException: method '" + method + "', instance '"+ instance + ", " + super.getMessage(); 35 } 36 37 } 38 | Popular Tags |