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: ParameterRegexpInvalidException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: import java.util.regex.PatternSyntaxException;
11:
12: public class ParameterRegexpInvalidException extends EngineException {
13: private static final long serialVersionUID = 1744487303290975583L;
14:
15: private String mDeclarationName = null;
16: private String mSubmissionName = null;
17: private String mParameterRegexp = null;
18:
19: public ParameterRegexpInvalidException(String declarationName,
20: String parameterRegexp, String submissionName,
21: PatternSyntaxException cause) {
22: super ("The parameter regular expression '" + parameterRegexp
23: + "' in submission '" + submissionName
24: + "' of element '" + declarationName + "' is invalid.",
25: cause);
26:
27: mDeclarationName = declarationName;
28: mSubmissionName = submissionName;
29: mParameterRegexp = parameterRegexp;
30: }
31:
32: public String getDeclarationName() {
33: return mDeclarationName;
34: }
35:
36: public String getSubmissionName() {
37: return mSubmissionName;
38: }
39:
40: public String getParameterRegexp() {
41: return mParameterRegexp;
42: }
43: }
|