01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: InvalidUseOfElementPropertyAnnotationException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class InvalidUseOfElementPropertyAnnotationException extends
11: ElementAnnotationErrorException {
12: private static final long serialVersionUID = -4487585264263683699L;
13:
14: private String mMethodName = null;
15:
16: public InvalidUseOfElementPropertyAnnotationException(
17: String implementationName, String siteDeclarationName,
18: String methodName, Throwable cause) {
19: super (
20: implementationName,
21: siteDeclarationName,
22: "the use of property annotations on method '"
23: + methodName
24: + "' is invalid, these annotations can only be used on setters and getters.",
25: cause);
26:
27: mMethodName = methodName;
28: }
29:
30: public String getMethodName() {
31: return mMethodName;
32: }
33: }
|