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: SubsiteIdAlreadyRegisteredToElementException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class SubsiteIdAlreadyRegisteredToElementException extends
11: EngineException {
12: private static final long serialVersionUID = 4883095137974676123L;
13:
14: private String mSiteDeclarationName = null;
15: private String mSubsiteId = null;
16: private String mExistingElementDeclarationName = null;
17: private String mConflictingSubsiteDeclarationName = null;
18:
19: public SubsiteIdAlreadyRegisteredToElementException(
20: String siteDeclarationName, String subsiteId,
21: String existingElementDeclarationName,
22: String conflictingSubsiteDeclarationName) {
23: super (
24: "The subsite ID '"
25: + subsiteId
26: + "' in site '"
27: + siteDeclarationName
28: + "' has already been registered to the element '"
29: + existingElementDeclarationName
30: + "', it's not possible to register it again for element '"
31: + conflictingSubsiteDeclarationName + "'.");
32:
33: mSiteDeclarationName = siteDeclarationName;
34: mSubsiteId = subsiteId;
35: mExistingElementDeclarationName = existingElementDeclarationName;
36: mConflictingSubsiteDeclarationName = conflictingSubsiteDeclarationName;
37: }
38:
39: public String getSiteDeclarationName() {
40: return mSiteDeclarationName;
41: }
42:
43: public String getSubsiteId() {
44: return mSubsiteId;
45: }
46:
47: public String getExistingElementDeclarationName() {
48: return mExistingElementDeclarationName;
49: }
50:
51: public String getConflictingSubsiteDeclarationName() {
52: return mConflictingSubsiteDeclarationName;
53: }
54: }
|