mmuifw_plat/alf_widgetutils_api/inc/alf/alfdataexception.h
changeset 17 3eca7e70b1b8
parent 3 4526337fb576
equal deleted inserted replaced
3:4526337fb576 17:3eca7e70b1b8
     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:  data exception
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef ALFDATAEXCEPTION_H_
       
    22 #define ALFDATAEXCEPTION_H_
       
    23 
       
    24 #include <alf/alfexception.h>
       
    25 
       
    26 
       
    27 namespace osncore
       
    28     {
       
    29 
       
    30 
       
    31 /**
       
    32  *  @class AlfDataException alfdataexception.h "alf/alfdataexception.h"
       
    33  *  Exception class used with invalid data exceptions.
       
    34  *
       
    35  *  @lib alfwidgetutils.lib
       
    36  *  @since S60 ?S60_version
       
    37  *  @status Draft
       
    38  */
       
    39 class AlfDataException : public AlfException
       
    40     {
       
    41 public:
       
    42 
       
    43     /**
       
    44     * Constructor.
       
    45     * @param aErrorCode Error code
       
    46     */
       
    47     OSN_IMPORT AlfDataException( const int aErrorCode ) throw();
       
    48 
       
    49     /**
       
    50       * Constructor.
       
    51       * @param aErrorCode Error code
       
    52       * @param aInfo Optional additional information or NULL
       
    53       * @param aFileAndLine Optional file and line information or NULL
       
    54       */
       
    55     OSN_IMPORT  AlfDataException(
       
    56         int aErrorCode, const char* aInfo, const char* aFileAndLine ) throw();
       
    57 
       
    58     /**
       
    59     *  Class Destructor.
       
    60     */
       
    61     OSN_IMPORT virtual ~AlfDataException() throw();
       
    62 
       
    63     /**
       
    64     * Returns the description of the exception.
       
    65     * @ret The description of the exception.
       
    66     */
       
    67     OSN_IMPORT virtual const char* what() const throw();
       
    68     };
       
    69 
       
    70     }
       
    71 
       
    72 #endif //ALFDATAEXCEPTION_H_
       
    73 
       
    74 // End of File