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: PackagePrivateAccessDisfunctionalException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class PackagePrivateAccessDisfunctionalException extends
11: EngineException {
12: private static final long serialVersionUID = -52620023902304981L;
13:
14: private String mElementClass = null;
15: private String mTargetClass = null;
16: private String mTargetMethod = null;
17:
18: public PackagePrivateAccessDisfunctionalException(
19: String elementClass, String targetClass, String targetMethod) {
20: super (
21: "The element with java class '"
22: + elementClass
23: + "' tries to access the package private method '"
24: + targetMethod
25: + "' of the class '"
26: + targetClass
27: + "'. Due to limitations in the java virtual machine, this will fail even though it's valid java code.");
28:
29: mElementClass = elementClass;
30: mTargetClass = targetClass;
31: mTargetMethod = targetMethod;
32: }
33:
34: public String getElementClass() {
35: return mElementClass;
36: }
37:
38: public String getTargetClass() {
39: return mTargetClass;
40: }
41:
42: public String getTargetMethod() {
43: return mTargetMethod;
44: }
45: }
|