diff -r 000000000000 -r a02c979e8dfd srcanaapps/apiquerytool/com.nokia.s60tools.apiquery/src/com/nokia/s60tools/apiquery/shared/exceptions/XMLNotValidException.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/srcanaapps/apiquerytool/com.nokia.s60tools.apiquery/src/com/nokia/s60tools/apiquery/shared/exceptions/XMLNotValidException.java Sat Jan 09 10:04:11 2010 +0530 @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +package com.nokia.s60tools.apiquery.shared.exceptions; + +/** + * Thrown when invalid XML data is encountered. + */ +public class XMLNotValidException extends Exception { + + private static final long serialVersionUID = -3037053770134709611L; + private String fileName = null; + + /** + * Private hidden constructor. + */ + @SuppressWarnings("unused") + private XMLNotValidException(){ + super(); + } + /** + * Public constructor coming always with descriptive message. + */ + public XMLNotValidException(String message){ + super(message); + } + + /** + * Public constructor coming always with descriptive message. + */ + public XMLNotValidException(String message, String fileName){ + super(message); + this.fileName = fileName; + } + + /** + * Get file name + * @return file name or null if not set. + */ + public String getFileName() { + return fileName; + } + +}