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: FatalParsingErrorsException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.xml.exceptions;
09:
10: import com.uwyn.rife.tools.StringUtils;
11: import java.util.Collection;
12:
13: public class FatalParsingErrorsException extends XmlErrorException {
14: private static final long serialVersionUID = 1286210792114678095L;
15:
16: private String mXmlPath = null;
17: private Collection<String> mFatalErrors = null;
18:
19: public FatalParsingErrorsException(String xmlPath,
20: Collection<String> fatalErrors) {
21: super (
22: "The following fatal XML errors occured during the parsing of "
23: + xmlPath + "'\n"
24: + StringUtils.join(fatalErrors, "\n"));
25:
26: mXmlPath = xmlPath;
27: mFatalErrors = fatalErrors;
28: }
29:
30: public String getXmlPath() {
31: return mXmlPath;
32: }
33:
34: public Collection<String> getFatalErrors() {
35: return mFatalErrors;
36: }
37: }
|