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: FileRegexpInvalidException.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 FileRegexpInvalidException extends EngineException {
13: private static final long serialVersionUID = -3117450649849316797L;
14:
15: private String mDeclarationName = null;
16: private String mSubmissionName = null;
17: private String mFileRegexp = null;
18:
19: public FileRegexpInvalidException(String declarationName,
20: String fileRegexp, String submissionName,
21: PatternSyntaxException cause) {
22: super ("The file regular expression '" + fileRegexp
23: + "' in submission '" + submissionName
24: + "' of element '" + declarationName + "' is invalid.",
25: cause);
26:
27: mDeclarationName = declarationName;
28: mSubmissionName = submissionName;
29: mFileRegexp = fileRegexp;
30: }
31:
32: public String getDeclarationName() {
33: return mDeclarationName;
34: }
35:
36: public String getSubmissionName() {
37: return mSubmissionName;
38: }
39:
40: public String getFileRegexp() {
41: return mFileRegexp;
42: }
43: }
|