frameworkplugins/com.nokia.s60tools.util/src/com/nokia/s60tools/util/sourcecode/CannotFoundFileException.java
changeset 0 61163b28edca
equal deleted inserted replaced
-1:000000000000 0:61163b28edca
       
     1 /*
       
     2 * Copyright (c) 2008 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.util.sourcecode;
       
    19 
       
    20 /**
       
    21  * Exception is thrown when another Exception occurs while seeking a source file location. 
       
    22  * Original Exception can be stored as member, if needed.
       
    23  */
       
    24 public class CannotFoundFileException extends Exception {
       
    25 
       
    26 	/**
       
    27 	 * Serialization ID.
       
    28 	 */
       
    29 	private static final long serialVersionUID = 2936572400459479759L;
       
    30 	
       
    31 	/**
       
    32 	 * Storing original exception that occurred initially.
       
    33 	 */
       
    34 	private Exception exception = null;
       
    35 	
       
    36 	/**
       
    37 	 * Default construction
       
    38 	 */
       
    39 	public CannotFoundFileException(){
       
    40 		super();		
       
    41 	}
       
    42 
       
    43 	/**
       
    44 	 * Exception with message 
       
    45 	 * @param message
       
    46 	 */
       
    47 	public CannotFoundFileException(String message){
       
    48 		super(message);
       
    49 	}
       
    50 	/**
       
    51 	 * Exception with message and original exception.
       
    52 	 * @param message Error message.
       
    53 	 * @param exception Original exception mapped to this exception type.
       
    54 	 */
       
    55 	public CannotFoundFileException(String message, Exception exception){
       
    56 		super(message);
       
    57 		this.exception = exception;
       
    58 	}
       
    59 
       
    60 	/**
       
    61 	 * Gets original exception mapped into this exception type.
       
    62 	 * @return the original exception
       
    63 	 */
       
    64 	public Exception getException() {
       
    65 		return exception;
       
    66 	}	
       
    67 	
       
    68 }