1 7 package com.inversoft.util; 8 9 10 18 public class ReflectionException extends BaseException { 19 20 protected Throwable target; 21 22 23 24 public ReflectionException() { } 25 26 31 public ReflectionException(String msg) { 32 super(msg); 33 } 34 35 47 public ReflectionException(String msg, Throwable cause) { 48 super(msg, cause); 49 } 50 51 62 public ReflectionException(Throwable cause) { 63 super(cause); 64 } 65 66 94 public ReflectionException(String msg, Throwable cause, Throwable target) { 95 super(msg, cause); 96 this.target = target; 97 } 98 99 105 public Throwable getTarget() { 106 return target; 107 } 108 109 113 public String toFullString() { 114 StringBuffer buf = new StringBuffer (); 115 buf.append(super.toString()); 116 buf.append("\nTarget: "); 117 buf.append(target); 118 return buf.toString(); 119 } 120 } | Popular Tags |