View Javadoc

1   package org.lsst.ccs.utilities.beanutils;
2   
3   import java.lang.reflect.AccessibleObject;
4   import java.util.Arrays;
5   
6   /**
7    * Wraps an exception thrown while invoking a bean method delegated to a non-bean;
8    * @author bamade
9    */
10  public class WrappedBeanMethodInvocationException extends WrappedException {
11      public final Object[] args ;
12      public final transient  AccessibleObject method ;
13      public final String methodString ;
14  
15      public WrappedBeanMethodInvocationException(Throwable throwable, AccessibleObject method, Object... args) {
16          super(throwable);
17          this.args = args;
18          this.method = method;
19          this.methodString = method.toString() ;
20      }
21  
22      public String toString() {
23          return super.toString() + " " + methodString + Arrays.toString(args)  ;
24      }
25  }