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: InvalidUseOfElementSubmissionHandlerAnnotationException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class InvalidUseOfElementSubmissionHandlerAnnotationException
11: extends ElementAnnotationErrorException {
12: private static final long serialVersionUID = 4403393138736067398L;
13:
14: private String mMethodName = null;
15:
16: public InvalidUseOfElementSubmissionHandlerAnnotationException(
17: String implementationName, String siteDeclarationName,
18: String methodName, Throwable cause) {
19: super (
20: implementationName,
21: siteDeclarationName,
22: "the user of @SubmissionHandler annotations on method '\"+methodName+\"' is invalid, these annotations can only be added to submission method handlers which start with the 'do' prefix, return void and have no arguments.",
23: cause);
24:
25: mMethodName = methodName;
26: }
27:
28: public String getMethodName() {
29: return mMethodName;
30: }
31: }
|