srcanaapps/apiquerytool/com.nokia.s60tools.apiquery/src/com/nokia/s60tools/apiquery/shared/exceptions/XMLNotValidException.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.s60tools.apiquery.shared.exceptions; |
|
19 |
|
20 /** |
|
21 * Thrown when invalid XML data is encountered. |
|
22 */ |
|
23 public class XMLNotValidException extends Exception { |
|
24 |
|
25 private static final long serialVersionUID = -3037053770134709611L; |
|
26 private String fileName = null; |
|
27 |
|
28 /** |
|
29 * Private hidden constructor. |
|
30 */ |
|
31 @SuppressWarnings("unused") |
|
32 private XMLNotValidException(){ |
|
33 super(); |
|
34 } |
|
35 /** |
|
36 * Public constructor coming always with descriptive message. |
|
37 */ |
|
38 public XMLNotValidException(String message){ |
|
39 super(message); |
|
40 } |
|
41 |
|
42 /** |
|
43 * Public constructor coming always with descriptive message. |
|
44 */ |
|
45 public XMLNotValidException(String message, String fileName){ |
|
46 super(message); |
|
47 this.fileName = fileName; |
|
48 } |
|
49 |
|
50 /** |
|
51 * Get file name |
|
52 * @return file name or <code>null</code> if not set. |
|
53 */ |
|
54 public String getFileName() { |
|
55 return fileName; |
|
56 } |
|
57 |
|
58 } |