root / import / ext3D / trunk / install-extension3d / IzPack / src / lib / net / n3 / nanoxml / XMLParseException.java @ 15280
History | View | Annotate | Download (2.09 KB)
1 |
/* XMLParseException.java NanoXML/Java
|
---|---|
2 |
*
|
3 |
* $Revision: 1.1 $
|
4 |
* $Date: 2006/06/14 07:29:07 $
|
5 |
* $Name: $
|
6 |
*
|
7 |
* This file is part of NanoXML 2 for Java.
|
8 |
* Copyright (C) 2001 Marc De Scheemaecker, All Rights Reserved.
|
9 |
*
|
10 |
* This software is provided 'as-is', without any express or implied warranty.
|
11 |
* In no event will the authors be held liable for any damages arising from the
|
12 |
* use of this software.
|
13 |
*
|
14 |
* Permission is granted to anyone to use this software for any purpose,
|
15 |
* including commercial applications, and to alter it and redistribute it
|
16 |
* freely, subject to the following restrictions:
|
17 |
*
|
18 |
* 1. The origin of this software must not be misrepresented; you must not
|
19 |
* claim that you wrote the original software. If you use this software in
|
20 |
* a product, an acknowledgment in the product documentation would be
|
21 |
* appreciated but is not required.
|
22 |
*
|
23 |
* 2. Altered source versions must be plainly marked as such, and must not be
|
24 |
* misrepresented as being the original software.
|
25 |
*
|
26 |
* 3. This notice may not be removed or altered from any source distribution.
|
27 |
*/
|
28 |
|
29 |
package net.n3.nanoxml; |
30 |
|
31 |
|
32 |
/**
|
33 |
* An XMLParseException is thrown when the XML passed to the XML parser is not
|
34 |
* well-formed.
|
35 |
*
|
36 |
* @author Marc De Scheemaecker
|
37 |
* @version $Name: $, $Revision: 1.1 $
|
38 |
*/
|
39 |
public class XMLParseException |
40 |
extends XMLException
|
41 |
{ |
42 |
|
43 |
/**
|
44 |
* Creates a new exception.
|
45 |
*
|
46 |
* @param msg the message of the exception.
|
47 |
*/
|
48 |
public XMLParseException(String msg) |
49 |
{ |
50 |
super(msg);
|
51 |
} |
52 |
|
53 |
|
54 |
/**
|
55 |
* Creates a new exception.
|
56 |
*
|
57 |
* @param systemID the system ID from where the data came
|
58 |
* @param lineNr the line number in the XML data where the exception
|
59 |
* occurred.
|
60 |
* @param msg the message of the exception.
|
61 |
*/
|
62 |
public XMLParseException(String systemID, |
63 |
int lineNr,
|
64 |
String msg)
|
65 |
{ |
66 |
super(systemID, lineNr, null, msg, true); |
67 |
} |
68 |
|
69 |
} |