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: Jdk15RequiredForAnnotationsException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class Jdk15RequiredForAnnotationsException extends
11: EngineException {
12: static final long serialVersionUID = 7036929351389355149L;
13:
14: private String mSiteDeclarationName = null;
15: private String mDeclarationName = null;
16:
17: public Jdk15RequiredForAnnotationsException(
18: String siteDeclarationName, String declarationName) {
19: super (
20: "Element '"
21: + declarationName
22: + "' in site '"
23: + siteDeclarationName
24: + "' tries to use annotations for its declaration, however at least Java v1.5 is required for that. You are currently running Java v"
25: + System.getProperty("java.version") + ".");
26:
27: mSiteDeclarationName = siteDeclarationName;
28: mDeclarationName = declarationName;
29: }
30:
31: public String getSiteDeclarationName() {
32: return mSiteDeclarationName;
33: }
34:
35: public String getDeclarationName() {
36: return mDeclarationName;
37: }
38: }
|