< prev index next >

src/java.base/share/classes/sun/reflect/annotation/TypeNotPresentExceptionProxy.java

Print this page




  28 
  29 /**
  30  * ExceptionProxy for TypeNotPresentException.
  31  *
  32  * @author  Josh Bloch
  33  * @since   1.5
  34  */
  35 public class TypeNotPresentExceptionProxy extends ExceptionProxy {
  36     private static final long serialVersionUID = 5565925172427947573L;
  37     final String typeName;
  38     final Throwable cause;
  39 
  40     public TypeNotPresentExceptionProxy(String typeName, Throwable cause) {
  41         this.typeName = typeName;
  42         this.cause = cause;
  43     }
  44 
  45     protected RuntimeException generateException() {
  46         return new TypeNotPresentException(typeName, cause);
  47     }





  48 }


  28 
  29 /**
  30  * ExceptionProxy for TypeNotPresentException.
  31  *
  32  * @author  Josh Bloch
  33  * @since   1.5
  34  */
  35 public class TypeNotPresentExceptionProxy extends ExceptionProxy {
  36     private static final long serialVersionUID = 5565925172427947573L;
  37     final String typeName;
  38     final Throwable cause;
  39 
  40     public TypeNotPresentExceptionProxy(String typeName, Throwable cause) {
  41         this.typeName = typeName;
  42         this.cause = cause;
  43     }
  44 
  45     protected RuntimeException generateException() {
  46         return new TypeNotPresentException(typeName, cause);
  47     }
  48 
  49     @Override
  50     public String memberToString() {
  51         return typeName + " /* Not present! */";
  52     }
  53 }
< prev index next >