001 package net.sourceforge.retroweaver.runtime.java.lang.annotation; 002 003 import java.lang.reflect.Method; 004 005 /** 006 * A mirror of java.lang.annotation.AnnotationTypeMismatchException 007 * 008 * @author Toby Reyelts 009 */ 010 public class AnnotationTypeMismatchException extends RuntimeException { 011 012 private final Method element_; 013 014 private final String foundType_; 015 016 public AnnotationTypeMismatchException(final Method element, final String foundType) { 017 super("type error: " + foundType + " for " + element); 018 this.element_ = element; 019 this.foundType_ = foundType; 020 } 021 022 public Method element() { 023 return element_; 024 } 025 026 public String foundType() { 027 return foundType_; 028 } 029 030 }